You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by am...@apache.org on 2001/10/30 16:03:25 UTC
cvs commit: xml-xalan/test/tests/conf/variable variable56.xml variable56.xsl
amiro 01/10/30 07:03:25
Added: test/tests/conf/variable variable56.xml variable56.xsl
Log:
variable scope test by darryl@schemasoft from bug 3268
Revision Changes Path
1.1 xml-xalan/test/tests/conf/variable/variable56.xml
Index: variable56.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/variable/variable56.xsl
Index: variable56.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- FileName: variable56 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.2 -->
<!-- Author: darrylf@schemasoft.com -->
<!-- Purpose: variables in inner scope with same name as variables in outter scope -->
<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:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org