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/08/03 21:35:52 UTC
cvs commit: xml-xalan/test/tests/conf/select select77.xsl select76.xsl select77.xml select76.xml
dmarston 01/08/03 12:35:52
Added: test/tests/conf/select select77.xsl select76.xsl
select77.xml select76.xml
Log:
New tests inspired by comments sent to the xalan-dev list.
Keep those cards and letters coming, folks.
Revision Changes Path
1.1 xml-xalan/test/tests/conf/select/select77.xsl
Index: select77.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: select77 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 5.4 -->
<!-- Creator: Chris McCabe -->
<!-- Purpose: Try to select a non-existent attribute out of a node-set variable -->
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/page">
<out><xsl:text>calling...</xsl:text>
<xsl:call-template name="BrandHeader">
<xsl:with-param name="hotelnode" select="/page/contents/avail/hotel"/>
</xsl:call-template>
</out>
</xsl:template>
<xsl:template name="BrandHeader">
<xsl:param name="hotelnode"/>
<xsl:value-of select="$hotelnode/location/@country"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/select/select76.xsl
Index: select76.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: select76 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 5.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Try /{name} to match the document element. -->
<xsl:template match="/Q">
<out>
<xsl:value-of select="@level"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/select/select77.xml
Index: select77.xml
===================================================================
<?xml version="1.0"?>
<page>
<contents>
<avail>
<hotel>
<location city="Seattle" state="WA"/>
</hotel>
</avail>
</contents>
</page>
1.1 xml-xalan/test/tests/conf/select/select76.xml
Index: select76.xml
===================================================================
<?xml version="1.0"?>
<Q level="0">bad0
<Q level="1">bad1
<Q level="2">bad2</Q>
</Q>
</Q>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org