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/19 21:54:26 UTC
cvs commit: xml-xalan/test/tests/conf/axes axes121.xsl axes121.xml
dmarston 01/12/19 12:54:26
Added: test/tests/conf/axes axes121.xsl axes121.xml
Log:
Behavior could vary if starting from root
Revision Changes Path
1.1 xml-xalan/test/tests/conf/axes/axes121.xsl
Index: axes121.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: AXES121 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Creator: David Marston -->
<!-- Section: 2.2 -->
<!-- Purpose: Test for '/descendant::*' to select all elements (excluding root node).
No text or comments should be picked up. -->
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<out>
<xsl:for-each select="/descendant::*">
<xsl:value-of select="name(.)"/>
<xsl:choose>
<xsl:when test="name(.)='center'">
<xsl:text> </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes121.xml
Index: axes121.xml
===================================================================
<?xml version="1.0"?>
<far-north>
<north>north-text1
<near-north>
<far-west/>
<west><!-- Western comment --></west>
<near-west/>
<center>center-text1
<near-south>
<south>south-text</south>
</near-south>
<near-south-west/>center-text2
</center>
<near-east/>
<east><!-- Eastern comment --></east>
<far-east/>
</near-north>north-text2
</north>
</far-north>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org