1.1 --- a/XSLForms/XSL/Input.xsl Thu Dec 08 22:30:14 2005 +0000
1.2 +++ b/XSLForms/XSL/Input.xsl Thu Dec 08 22:30:34 2005 +0000
1.3 @@ -36,7 +36,8 @@
1.4 <!-- Match the document itself. -->
1.5
1.6 <xsl:template match="/">
1.7 - <axsl:stylesheet version="1.0">
1.8 + <axsl:stylesheet version="1.0" xmlns:dyn="http://exslt.org/dynamic"
1.9 + extension-element-prefixes="dyn">
1.10
1.11 <axsl:output indent="yes"/>
1.12
1.13 @@ -232,7 +233,10 @@
1.14 </xsl:if>
1.15
1.16 <!-- Select inside the enumeration source, inside an element with the field's name, the enumeration elements. -->
1.17 - <axsl:for-each select="${../@name}/{../@name}/{@name}">
1.18 + <!-- NOTE: We could avoid dyn:evaluate if we were certain that a document reference was being used. -->
1.19 + <!-- NOTE: However, we may want to be able to refer to other places within the document, and this requires -->
1.20 + <!-- NOTE: some dynamic evaluation. -->
1.21 + <axsl:for-each select="dyn:evaluate(${../@name})/{../@name}/{@name}">
1.22 <axsl:copy>
1.23 <axsl:apply-templates select="@*"/>
1.24 <xsl:if test="@type='multiple-choice-list-value'">