dmarston 2002/10/28 11:20:05 Modified: test/tests/conf/namespace namespace28.xsl Added: test/tests/conf/namespace namespace142.xsl namespace142.xml Log: Expand coverage of name functions on namespace nodes Revision Changes Path 1.4 +8 -2 xml-xalan/test/tests/conf/namespace/namespace28.xsl Index: namespace28.xsl =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/namespace28.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- namespace28.xsl 3 Oct 2001 21:58:09 -0000 1.3 +++ namespace28.xsl 28 Oct 2002 19:20:05 -0000 1.4 @@ -5,14 +5,20 @@ <!-- Document: http://www.w3.org/TR/xpath --> <!-- DocVersion: 19991116 --> <!-- Section: 4.1 --> - <!-- Purpose: Test of local-name on namespace axis. --> + <!-- Purpose: Test of local-name and name() on namespace axis. --> <!-- Creator: David Marston --> <!-- The local-name() function should work on this axis, returning the same value as name(). The XML parser has freedom to present namespaces in any order it wants. The input should have only one namespace if you want consistent results across parsers. --> +<xsl:output method="xml" encoding="UTF-8" indent="no" /> + <xsl:template match="doc"> - <out><xsl:value-of select="local-name(namespace::*[1])"/></out> + <out> + <xsl:value-of select="local-name(namespace::*[1])"/> + <xsl:text>=</xsl:text> + <xsl:value-of select="local-name(namespace::*[1])"/> + </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/namespace/namespace142.xsl Index: namespace142.xsl =================================================================== <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:pre="http://example.com" exclude-result-prefixes="pre"> <!-- FileName: namespace142 --> <!-- Document: http://www.w3.org/TR/xpath --> <!-- DocVersion: 19991116 --> <!-- Section: 4.1 --> <!-- Creator: David Marston --> <!-- Purpose: Test name functions on default-namespace declaration. Should be null strings. --> <xsl:output method="xml" encoding="UTF-8" indent="no" /> <xsl:template match="pre:doc"> <out> <xsl:value-of select="count(namespace::*[name(.)!='xml'])"/><xsl:text> namespace node qualifies: </xsl:text> <xsl:text>name|</xsl:text><xsl:value-of select="name(namespace::*[name(.)!='xml'])"/><xsl:text>|</xsl:text> <xsl:text>namespace-uri|</xsl:text><xsl:value-of select="namespace-uri(namespace::*[name(.)!='xml'])"/><xsl:text>|</xsl:text> <xsl:text>local-name|</xsl:text><xsl:value-of select="local-name(namespace::*[name(.)!='xml'])"/><xsl:text>|</xsl:text> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/namespace/namespace142.xml Index: namespace142.xml =================================================================== <?xml version="1.0"?> <doc xmlns="http://example.com"/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]