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/10/05 00:22:03 UTC
cvs commit: xml-xalan/test/tests/conf/mdocs mdwords-b.xml mdocs18.xsl mdwords-a.xml mdocs18.xml
dmarston 01/10/04 15:22:03
Added: test/tests/conf/mdocs mdwords-b.xml mdocs18.xsl
mdwords-a.xml mdocs18.xml
Log:
New case that is trickier than earlier ones because of deliberate mixing of nodes.
Also, mdwords files can be used by other tests.
Revision Changes Path
1.1 xml-xalan/test/tests/conf/mdocs/mdwords-b.xml
Index: mdwords-b.xml
===================================================================
<?xml version="1.0"?>
<outer>
<body>B-Why</body>
<body>B-Dry</body>
<body>B-Pie</body>
</outer>
1.1 xml-xalan/test/tests/conf/mdocs/mdocs18.xsl
Index: mdocs18.xsl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: mdocs18 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Try sorting and numbering nodes from two other documents. -->
<!-- If we didn't sort, we couldn't guarantee the order in which the documents would be read. -->
<xsl:template match="doc">
<out>
<xsl:value-of select="count(document(a)//body)"/><xsl:text> body nodes:
</xsl:text>
<xsl:apply-templates select="document(a)//body">
<xsl:sort select="substring-after(.,'-')"/>
</xsl:apply-templates>
</out>
</xsl:template>
<xsl:template match="body">
<xsl:value-of select="position()"/><xsl:text>. </xsl:text>
<xsl:value-of select="."/><xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/mdocs/mdwords-a.xml
Index: mdwords-a.xml
===================================================================
<?xml version="1.0"?>
<doc>
<body>A-Flirt</body>
<body>A-Skirt</body>
</doc>
1.1 xml-xalan/test/tests/conf/mdocs/mdocs18.xml
Index: mdocs18.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<a>mdwords-a.xml</a><!-- Flirt, Skirt -->
<a/>
<a>mdwords-b.xml</a><!-- Why, Dry, Pie -->
<x/>
</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org