pauldick 01/12/17 06:27:34
Added: test/tests/conf/idkey idkey51.xml idkey51.xsl
Log:
Additional testcase
Revision Changes Path
1.1 xml-xalan/test/tests/conf/idkey/idkey51.xml
Index: idkey51.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>idkey49b.xml</a><!-- Shirt, Overt -->
</doc>
1.1 xml-xalan/test/tests/conf/idkey/idkey51.xsl
Index: idkey51.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: idkey51 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 12.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test two calls to generate-id() on the same file. All IDs should be
the same. If both filenames were given literally, the spec says that IDs must
match.
Retrieving the name from the principal XML document should still clearly mean the
same file. Putting nodes in a variable is more of a gray area. -->
<xsl:template match="doc">
<out>
<xsl:variable name="nodes" select="document('idkey49b.xml')//body" />
<xsl:text> </xsl:text>
<from-a>
<xsl:for-each select="document(a)//body">
<xsl:value-of select="generate-id(.)"/><xsl:text>, </xsl:text>
</xsl:for-each>
</from-a>
<xsl:text> </xsl:text>
<from-v>
<xsl:for-each select="$nodes">
<xsl:value-of select="generate-id(.)"/><xsl:text>, </xsl:text>
</xsl:for-each>
</from-v>
</out>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]