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 55724 - match priority(?) bug with namespaced attribute wildcard
match priority(?) bug with namespaced attribute wildcard
Status: VERIFIED DUPLICATE of bug 55722
Product: libxslt
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-06-04 20:47 UTC by stinney
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description stinney 2001-06-04 20:47:19 UTC
This xsl stylesheet:

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

<xsl:template match="@b:*"/>

<xsl:template match="*">
  <xsl:copy>
    <xsl:apply-templates select="*|@*"/>
  </xsl:copy>
</xsl:template>

<xsl:template match="@*">
  <xsl:copy/>
</xsl:template>

</xsl:stylesheet>

should strip the attribute b:c out of the following input:

<a b:c="d" xmlns:b="http://b"/>

But instead it produces:

badnsattr$ xsltproc -V test.xsl test.xml
Using libxml 20310 and libxslt 1100
<?xml version="1.0"?>
<a xmlns:b="http://b" b:c="d"/>

Saxon produces:

<?xml version="1.0" encoding="utf-8"?>
<a xmlns:b="http://b"/>

 Steve
Comment 1 stinney 2001-06-04 20:51:21 UTC
(damn mozilla's overzealous form submission)


*** This bug has been marked as a duplicate of 55722 ***