GNOME Bugzilla – Bug 61291
XML pseudo namespace should have a node
Last modified: 2009-08-15 18:40:50 UTC
Running the following style sheet against itself: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="*"> <xsl:for-each select="namespace::*"> <namespace> <name><xsl:value-of select="name()"/></name> <uri><xsl:value-of select="."/></uri> <parent><xsl:copy-of select=".."/></parent> </namespace> </xsl:for-each> </xsl:template> </xsl:stylesheet> Gives: <?xml version="1.0"?> <namespace><name>xsl</name><uri>http://www.w3.org/1999/XSL/Transform</uri><parent/></namespace> showing no namespace node for the xml "pseudo namespace" as required per XPath (http://www.w3.org/TR/xpath#namespace-nodes).
Okay I fixed that part in libxml: orchis:~/XSLT/xsltproc -> ./xsltproc tst.xsl tst.xsl <?xml version="1.0"?> <namespace><name>xsl</name><uri>http://www.w3.org/1999/XSL/Transform</uri><parent/></namespace><namespace><name>xml</name><uri>http://www.w3.org/XML/1998/namespace</uri><parent/></namespace> orchis:~/XSLT/xsltproc -> This doesn't fix bug 61290 but should at least close this one, thanks ! Daniel
should be fixed in the last releases, Daniel