After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 61291 - XML pseudo namespace should have a node
XML pseudo namespace should have a node
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-09-27 15:59 UTC by vdv
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description vdv 2001-09-27 15:59:07 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).
Comment 1 Daniel Veillard 2001-10-05 09:18:17 UTC
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
Comment 2 Daniel Veillard 2001-10-30 18:51:38 UTC
should be fixed in the last releases,

Daniel