GNOME Bugzilla – Bug 55724
match priority(?) bug with namespaced attribute wildcard
Last modified: 2009-08-15 18:40:50 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
(damn mozilla's overzealous form submission) *** This bug has been marked as a duplicate of 55722 ***