1.1 --- a/XSLForms/XSL/Prepare.xsl Mon Dec 20 19:42:37 2004 +0000
1.2 +++ b/XSLForms/XSL/Prepare.xsl Mon Dec 20 19:43:05 2004 +0000
1.3 @@ -100,9 +100,18 @@
1.4 <xsl:template name="special-values">
1.5 <xsl:choose>
1.6 <xsl:when test="@template:attribute">
1.7 - <axsl:for-each select="@{@template:attribute}">
1.8 - <xsl:call-template name="special-value"/>
1.9 - </axsl:for-each>
1.10 + <axsl:choose>
1.11 + <axsl:when test="@{@template:attribute}">
1.12 + <axsl:variable name="this-name"><xsl:value-of select="@template:attribute"/></axsl:variable>
1.13 + <axsl:variable name="this-value" select="@{@template:attribute}"/>
1.14 + <xsl:call-template name="special-value"/>
1.15 + </axsl:when>
1.16 + <axsl:otherwise>
1.17 + <axsl:variable name="this-name"><xsl:value-of select="@template:attribute"/></axsl:variable>
1.18 + <axsl:variable name="this-value"></axsl:variable>
1.19 + <xsl:call-template name="special-value"/>
1.20 + </axsl:otherwise>
1.21 + </axsl:choose>
1.22 </xsl:when>
1.23 <xsl:otherwise>
1.24 <xsl:call-template name="special-value"/>