1.1 --- a/docs/multiple.html Tue Jul 19 23:28:44 2005 +0000
1.2 +++ b/docs/multiple.html Tue Jul 19 23:40:05 2005 +0000
1.3 @@ -21,7 +21,7 @@
1.4 <p>Whilst HTML offers types of form fields where users can select one
1.5 or many values presented in a list or menu, we shall first consider the
1.6 case where only a single value can be chosen from such a selection.</p>
1.7 -<form Method="POST" Action="none" Name="single">
1.8 +<form method="post" action="none" name="single">
1.9 <p>Some item: <input name="value" value="some value" /><input
1.10 name="remove" value="Remove" type="submit" /></p>
1.11 <p>Item type:
1.12 @@ -44,8 +44,8 @@
1.13 style="font-weight: bold;"><p></span><br
1.14 style="font-weight: bold;" /><span style="font-weight: bold;"> Item type:</span><br
1.15 style="font-weight: bold;" /><span style="font-weight: bold;"> <select template:element="type" name="{template:new-field('value')}"></span><br
1.16 - style="font-weight: bold;" /><span style="font-weight: bold;"> <option template:element="type-enum" template:expr="@value-is-set" template:expr-attr="selected"</span><br
1.17 - style="font-weight: bold;" /><span style="font-weight: bold;"> template:value="@value" value="{@value}"></option></span><br
1.18 + style="font-weight: bold;" /><span style="font-weight: bold;"> <option template:element="type-enum" template:expr="@value = ../@value" template:expr-attr="selected"</span><br
1.19 + style="font-weight: bold;" /><span style="font-weight: bold;"> template:value="@value" value="{@value}" /></span><br
1.20 style="font-weight: bold;" /><span style="font-weight: bold;"> </select></span><br
1.21 style="font-weight: bold;" /><span style="font-weight: bold;"> </p></span><br /> <p><br /> Itself containing more items:<br /> </p><br /> <p template:element="subitem"><br /> Sub-item: <input template:attribute="subvalue" name="{template:field-name()}" type="text" value="{$this-value}" /><br /> <input name="remove2={template:this-position()}" type="submit" value="Remove" /><br /> </p><br /> <p><br /> <input name="add2={template:this-position()}" type="submit" value="Add subitem" /><br /> </p><br /></div><br /><p><br /> <input name="add={template:this-position()}" type="submit" value="Add item" /><br /></p><span
1.22 style="font-weight: bold;"><br /><br /></span><!-- Template text between the interesting part and the end. --><br /><br /></form><br /></body><br /></html></pre>
2.1 --- a/examples/Common/VerySimple/Resources/structure_template.xhtml Tue Jul 19 23:28:44 2005 +0000
2.2 +++ b/examples/Common/VerySimple/Resources/structure_template.xhtml Tue Jul 19 23:40:05 2005 +0000
2.3 @@ -19,8 +19,8 @@
2.4 <p>
2.5 Item type:
2.6 <select template:element="type" name="{template:new-field('value')}">
2.7 - <option template:element="type-enum" template:expr="@value-is-set" template:expr-attr="selected"
2.8 - template:value="@value" value="{@value}"></option>
2.9 + <option template:element="type-enum" template:expr="@value = ../@value" template:expr-attr="selected"
2.10 + template:value="@value" value="{@value}" />
2.11 </select>
2.12 </p>
2.13 <p>
3.1 --- a/examples/Common/VerySimple/Resources/structure_types.xsl Tue Jul 19 23:28:44 2005 +0000
3.2 +++ b/examples/Common/VerySimple/Resources/structure_types.xsl Tue Jul 19 23:40:05 2005 +0000
3.3 @@ -54,10 +54,6 @@
3.4 <xsl:for-each select="$types/types/type-enum">
3.5 <xsl:copy>
3.6 <xsl:apply-templates select="@*"/>
3.7 - <!-- Mark those whose value are the same as that found on the element. -->
3.8 - <xsl:if test="$value = @value">
3.9 - <xsl:attribute name="value-is-set">true</xsl:attribute>
3.10 - </xsl:if>
3.11 </xsl:copy>
3.12 </xsl:for-each>
3.13 </xsl:template>