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 2002/03/05 22:20:53 UTC
cvs commit: xml-xalan/test/tests/conf/variable variable66.xsl variable64.xsl variable65.xml variable65.xsl variable66.xml variable64.xml
dmarston 02/03/05 13:20:53
Added: test/tests/conf/variable variable66.xsl variable64.xsl
variable65.xml variable65.xsl variable66.xml
variable64.xml
Log:
Tests that initialize global variables and later use them
in xsl:with-param
Revision Changes Path
1.1 xml-xalan/test/tests/conf/variable/variable66.xsl
Index: variable66.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: variable65 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.6 -->
<!-- Creator: David Marston, from Joseph Kesselman's base test -->
<!-- Purpose: test with-param as string copied from global variable (a locally-built RTF) -->
<xsl:output method="xml" encoding="UTF-8" indent="no"/>
<xsl:variable name="ax"><xsl:value-of select="//Test/@a"/>x</xsl:variable>
<xsl:variable name="librurgli"><li>b<r>u</r>g</li></xsl:variable>
<xsl:template match="/">
<out>
<xsl:call-template name="preview"/>
<xsl:call-template name="doNothing">
<xsl:with-param name="dummy" select="string($librurgli)"/>
</xsl:call-template>
<xsl:text>
</xsl:text>
<after>ax="<xsl:value-of select='$ax'/>"</after>
</out>
</xsl:template>
<xsl:template name="preview">
<before>ax="<xsl:value-of select='$ax'/>"</before>
</xsl:template>
<xsl:template name="doNothing">
<xsl:param name="dummy"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/variable/variable64.xsl
Index: variable64.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: variable64 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.6 -->
<!-- Creator: Joseph Kesselman -->
<!-- Purpose: test with-param as RTF copied from global variable (also RTF) -->
<xsl:output method="xml" encoding="UTF-8" indent="no"/>
<xsl:variable name="ax"><xsl:value-of select="//Test/@a"/>x</xsl:variable>
<xsl:variable name="by"><xsl:value-of select="//Test/@b"/>y</xsl:variable>
<xsl:template match="/">
<out>
<xsl:call-template name="preview"/>
<xsl:call-template name="doNothing">
<xsl:with-param name="dummy">
<xsl:value-of select="$by"/>
</xsl:with-param>
</xsl:call-template>
<xsl:text>
</xsl:text>
<after>ax="<xsl:value-of select='$ax'/>"</after>
</out>
</xsl:template>
<xsl:template name="preview">
<before>ax="<xsl:value-of select='$ax'/>"</before>
</xsl:template>
<xsl:template name="doNothing">
<xsl:param name="dummy"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/variable/variable65.xml
Index: variable65.xml
===================================================================
<?xml version="1.0"?>
<doc>
<Test a="attrib-a" b="attrib-b"/>
</doc>
1.1 xml-xalan/test/tests/conf/variable/variable65.xsl
Index: variable65.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: variable65 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.6 -->
<!-- Creator: David Marston, from Joseph Kesselman's base test -->
<!-- Purpose: test with-param as string copied from global variable (an RTF) -->
<xsl:output method="xml" encoding="UTF-8" indent="no"/>
<xsl:variable name="ax"><xsl:value-of select="//Test/@a"/>x</xsl:variable>
<xsl:variable name="by"><xsl:value-of select="//Test/@b"/>y</xsl:variable>
<xsl:template match="/">
<out>
<xsl:call-template name="preview"/>
<xsl:call-template name="doNothing">
<xsl:with-param name="dummy" select="string($by)"/>
</xsl:call-template>
<xsl:text>
</xsl:text>
<after>ax="<xsl:value-of select='$ax'/>"</after>
</out>
</xsl:template>
<xsl:template name="preview">
<before>ax="<xsl:value-of select='$ax'/>"</before>
</xsl:template>
<xsl:template name="doNothing">
<xsl:param name="dummy"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/variable/variable66.xml
Index: variable66.xml
===================================================================
<?xml version="1.0"?>
<doc>
<Test a="attrib-a" b="attrib-b"/>
</doc>
1.1 xml-xalan/test/tests/conf/variable/variable64.xml
Index: variable64.xml
===================================================================
<?xml version="1.0"?>
<doc>
<Test a="attrib-a" b="attrib-b"/>
</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org