dmarston 01/03/29 13:54:35
Modified: test/tests/conf/variable variable13.xsl
Log:
Put xsl:param declarations in proper position.
Revision Changes Path
1.2 +14 -10 xml-xalan/test/tests/conf/variable/variable13.xsl
Index: variable13.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/variable/variable13.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- variable13.xsl 2000/12/15 21:34:52 1.1
+++ variable13.xsl 2001/03/29 21:54:34 1.2
@@ -10,19 +10,23 @@
<xsl:param name="chooseTest" select="'ABC'"/>
-<xsl:template match="doc">
+<xsl:template match="/">
<out>
<xsl:value-of select="$chooseTest"/><xsl:text>_</xsl:text>
- <xsl:param name="chooseTest">
- <xsl:choose>
- <xsl:when test="item='X'">24</xsl:when>
- <xsl:when test="item='Y'">25</xsl:when>
- <xsl:when test="item='Z'">26</xsl:when>
- <xsl:otherwise>32</xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:value-of select="$chooseTest"/>
+ <xsl:apply-templates select="doc"/>
</out>
+</xsl:template>
+
+<xsl:template match="doc">
+ <xsl:param name="chooseTest">
+ <xsl:choose>
+ <xsl:when test="item='X'">24</xsl:when>
+ <xsl:when test="item='Y'">25</xsl:when>
+ <xsl:when test="item='Z'">26</xsl:when>
+ <xsl:otherwise>32</xsl:otherwise>
+ </xsl:choose>
+ </xsl:param>
+ <xsl:value-of select="$chooseTest"/>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]