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 407731 - "Undefined namespace prefix" which XSLT prefix and two predicates
"Undefined namespace prefix" which XSLT prefix and two predicates
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-02-14 04:23 UTC by Oleg Paraschenko
Modified: 2007-02-14 09:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Oleg Paraschenko 2007-02-14 04:23:51 UTC
Consider the stylesheet:

----- test.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:template match="*[xsl:template][1]">
  <x/>
</xsl:template>

</xsl:stylesheet>
----- /test.xsl

Let run it:

----- screen
$ ~/p/third_party/libxslt/opt/bin/xsltproc test.xsl test.xsl
XPath error : Undefined namespace prefix
<?xml version="1.0"?>
<x/>
----- </screen>

Note the error "Undefined namespace prefix" is appeared, but there is no error. And, for example, Saxon doesn't complaint.

The funny thing is that if I change "*[xsl:template][1]" to "*[xsl:template]", the error is disappeared.
Comment 1 William M. Brack 2007-02-14 09:22:26 UTC
Fixed in SVN (libxslt/pattern.c) - thanks for the report!