1.1 --- a/XSLForms/XSL/Input.xsl Wed Oct 05 01:04:26 2005 +0000
1.2 +++ b/XSLForms/XSL/Input.xsl Wed Oct 05 16:05:06 2005 +0000
1.3 @@ -100,7 +100,7 @@
1.4 </xsl:call-template>
1.5 </xsl:when>
1.6 <!-- Added elements. -->
1.7 - <xsl:when test="$adding-selectors = 0">
1.8 + <xsl:when test="(not(@init) or @init = 'auto') and $adding-selectors = 0 or @init = 'yes'">
1.9 <xsl:element name="{@name}">
1.10 <axsl:apply-templates select="{$path}/{@name}/@*"/>
1.11 <xsl:call-template name="process-elements">
1.12 @@ -132,7 +132,7 @@
1.13 <xsl:when test="@type='multiple-choice-value' or @type='multiple-choice-list-value'">
1.14 <!-- Do not match multiple-choice values. -->
1.15 </xsl:when>
1.16 - <xsl:when test="$adding-selectors = 0">
1.17 + <xsl:when test="(not(@init) or @init = 'auto') and $adding-selectors = 0 or @init = 'yes'">
1.18 <xsl:call-template name="process-rules">
1.19 <xsl:with-param name="path" select="concat($path, '/', @name)"/>
1.20 </xsl:call-template>