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/05/15 21:47:25 UTC
cvs commit: xml-xalan/test/tests/conf/axes axes128.xsl axes127.xsl axes128.xml axes127.xml
dmarston 02/05/15 12:47:25
Added: test/tests/conf/axes axes128.xsl axes127.xsl axes128.xml
axes127.xml
Log:
Tests for following:: that parallel axes125 and 126
Revision Changes Path
1.1 xml-xalan/test/tests/conf/axes/axes128.xsl
Index: axes128.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes128 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Ensure that preceding::node() does get comment and PI nodes -->
<xsl:template match="/">
<out>
<xsl:for-each select="//inner/preceding::node()">
<xsl:value-of select="name(.)"/>
<xsl:text> (</xsl:text>
<xsl:value-of select="."/>
<xsl:text>), </xsl:text>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes127.xsl
Index: axes127.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: axes127 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Ensure that following::node() doesn't get namespace or attribute nodes -->
<xsl:template match="/">
<out>
<xsl:for-each select="//inner/following::node()">
<xsl:value-of select="name(.)"/>
<xsl:text> (</xsl:text>
<xsl:value-of select="."/>
<xsl:text>), </xsl:text>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/axes/axes128.xml
Index: axes128.xml
===================================================================
<?xml version="1.0"?>
<doc>D
<!-- Comment 1 -->
<connection/>C
<?a-pi pi-1?>
<section>S
<!-- Comment 2 -->
<?a-pi pi-2?>
<inner/>I
</section>X
</doc>
1.1 xml-xalan/test/tests/conf/axes/axes127.xml
Index: axes127.xml
===================================================================
<?xml version="1.0"?>
<doc xmlns:ext="http://somebody.elses.extension">D
<section xmlns:foo="http://foo.com" b="bad">S
<inner xmlns:whiz="http://whiz.com/special/page"/>I
</section>X
<connection xmlns:woo="http://woo.com" a="bad"/>C
</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org