GNOME Bugzilla – Bug 309580
Different result for attribute::foo and @foo
Last modified: 2009-08-15 18:40:50 UTC
Version details: FreeBSD port Distribution/Version: 4.11 Given this stylesheet: <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text" encoding="ASCII" /> <xsl:template match="/"> @ - '<xsl:value-of select="a/b/@foo" />' attribute - '<xsl:value-of select="a/b/attribute::foo" />' </xsl:template> </xsl:stylesheet> and this input: <?xml version="1.0"?> <a> <b foo="bar" /> </a> I expect this: @ - 'bar' attribute - 'bar' but see this: @ - 'bar' attribute - '' Version is: xsltproc was compiled against libxml 20619, libxslt 10114 and libexslt 812 Previous versions behave as I expect.
*** Bug 309864 has been marked as a duplicate of this bug. ***
Fixed by release 2.6.20 of libxml2. Thanks for the report and for the clear test cases. Bill
Great, thanks for the quick responses. Jon
This should be closed by release of libxslt-1.1.15 thanks, Daniel