You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2001/11/06 18:37:57 UTC
cvs commit: xml-xalan/test/tests/conf/variable variable56.xsl
dmarston 01/11/06 09:37:57
Modified: test/tests/conf/variable variable56.xsl
Log:
Revise comments, and note that this might be an error condition that we need to catch.
Revision Changes Path
1.2 +14 -15 xml-xalan/test/tests/conf/variable/variable56.xsl
Index: variable56.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/variable/variable56.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- variable56.xsl 2001/10/30 15:03:25 1.1
+++ variable56.xsl 2001/11/06 17:37:57 1.2
@@ -4,22 +4,21 @@
<!-- FileName: variable56 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
- <!-- Section: 11.2 -->
+ <!-- Section: 11.5 -->
<!-- Author: darrylf@schemasoft.com -->
- <!-- Purpose: variables in inner scope with same name as variables in outter scope -->
+ <!-- Purpose: Use same-named variables in inner and outer scopes, where inner is a for-each loop. -->
+ <!-- This may need to become an error case. -->
- <xsl:output method="xml" indent="yes" />
+<xsl:output method="xml" indent="yes" />
- <xsl:template match="/">
- <xsl:variable name="bar">outer</xsl:variable>
- <outer bar="{$bar}">
- <xsl:for-each select="./*">
- <xsl:variable name="bar">inner</xsl:variable>
- <inner bar="{$bar}"/>
- </xsl:for-each>
- </outer>
- </xsl:template>
+<xsl:template match="/">
+ <xsl:variable name="bar">outer</xsl:variable>
+ <outer bar="{$bar}">
+ <xsl:for-each select="./*">
+ <xsl:variable name="bar">inner</xsl:variable>
+ <inner bar="{$bar}"/>
+ </xsl:for-each>
+ </outer>
+</xsl:template>
-</xsl:stylesheet>
-
-
+</xsl:stylesheet>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org