DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8231>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8231 XPath function name() doesn't include the namespace Summary: XPath function name() doesn't include the namespace Product: XalanJ2 Version: 2.0.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The XPath spec says that the name() function should be the fully qualified name including the namespace prefix, but when I use it I doesn't include the prefix. Example: --- XSL --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:fred="fred.flintstone" > <xsl:template match="/"> Elements with no namespace <xsl:for-each select="test"> name = '<xsl:value-of select="name()"/>' local-name = '<xsl:value-of select="local-name()"/>' namespace-uri = '<xsl:value-of select="namespace-uri ()"/>' </xsl:for-each> Elements in namespace fred <xsl:for-each select="fred:test"> name = '<xsl:value-of select="name()"/>' local-name = '<xsl:value-of select="local-name()"/>' namespace-uri = '<xsl:value-of select="namespace-uri ()"/>' </xsl:for-each> </xsl:template> </xsl:stylesheet> --- XML --- <?xml version="1.0" encoding="UTF-8"?> <test xmlns="fred.flintstone"/> ----------- I think it should print name = "fred:test" but just prints name = "test". Am I doing something wrong here? Thanks, Damon
