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/12/14 21:45:50 UTC
cvs commit: xml-xalan/test/tests/conf/namedtemplate ntimpc.xsl namedtemplate17.xsl namedtemplate18.xml namedtemplate18.xsl namedtemplate19.xml namedtemplate19.xsl ntimpa.xsl ntimpb.xsl namedtemplate17.xml
dmarston 01/12/14 12:45:50
Added: test/tests/conf/namedtemplate ntimpc.xsl namedtemplate17.xsl
namedtemplate18.xml namedtemplate18.xsl
namedtemplate19.xml namedtemplate19.xsl ntimpa.xsl
ntimpb.xsl namedtemplate17.xml
Log:
Import precedence tests: calling named template
Revision Changes Path
1.1 xml-xalan/test/tests/conf/namedtemplate/ntimpc.xsl
Index: ntimpc.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: ntimpc -->
<!-- Purpose: Imported by various tests. -->
<xsl:import href="ntimpa.xsl"/>
<xsl:template name="show">
<xsl:text>Template from ntimpc has been called.</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namedtemplate/namedtemplate17.xsl
Index: namedtemplate17.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: namedtemplate17 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 6 Named Templates -->
<!-- Creator: David Marston -->
<!-- Purpose: Test import precedence: both ntimpa and ntimpb have "show" template, b wins. -->
<!-- Output should be 'Template from ntimpb has been called.' -->
<xsl:import href="ntimpa.xsl"/>
<xsl:import href="ntimpb.xsl"/>
<xsl:template match="doc">
<out>
<xsl:call-template name="show"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namedtemplate/namedtemplate18.xml
Index: namedtemplate18.xml
===================================================================
<?xml version="1.0"?>
<doc></doc>
1.1 xml-xalan/test/tests/conf/namedtemplate/namedtemplate18.xsl
Index: namedtemplate18.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: namedtemplate18 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 6 Named Templates -->
<!-- Creator: David Marston -->
<!-- Purpose: Test import precedence: main stylesheet wins over imported one. -->
<!-- Output should be 'Template from MAIN has been called.' -->
<xsl:import href="ntimpa.xsl"/>
<xsl:template match="doc">
<out>
<xsl:call-template name="show"/>
</out>
</xsl:template>
<xsl:template name="show">
<xsl:text>Template from MAIN has been called.</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namedtemplate/namedtemplate19.xml
Index: namedtemplate19.xml
===================================================================
<?xml version="1.0"?>
<doc></doc>
1.1 xml-xalan/test/tests/conf/namedtemplate/namedtemplate19.xsl
Index: namedtemplate19.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: namedtemplate19 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 6 Named Templates -->
<!-- Creator: David Marston -->
<!-- Purpose: Test import precedence: both ntimpa and ntimpc have "show" template, c wins. -->
<!-- Output should be 'Template from ntimpc has been called.' -->
<xsl:import href="ntimpc.xsl"/>
<xsl:template match="doc">
<out>
<xsl:call-template name="show"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namedtemplate/ntimpa.xsl
Index: ntimpa.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: ntimpa -->
<!-- Purpose: Imported by various tests. -->
<xsl:template name="show">
<xsl:text>Template from ntimpa has been called.</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namedtemplate/ntimpb.xsl
Index: ntimpb.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: ntimpb -->
<!-- Purpose: Imported by various tests. -->
<xsl:template name="show">
<xsl:text>Template from ntimpb has been called.</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namedtemplate/namedtemplate17.xml
Index: namedtemplate17.xml
===================================================================
<?xml version="1.0"?>
<doc></doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org