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 309580 - Different result for attribute::foo and @foo
Different result for attribute::foo and @foo
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.14
Other FreeBSD
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-07-06 11:32 UTC by Jonathan Wakely
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathan Wakely 2005-07-06 11:32:29 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.
Comment 1 William M. Brack 2005-07-09 14:01:20 UTC
*** Bug 309864 has been marked as a duplicate of this bug. ***
Comment 2 William M. Brack 2005-07-11 01:20:49 UTC
Fixed by release 2.6.20 of libxml2.  Thanks for the report and for the clear 
test cases.
Bill
Comment 3 Jonathan Wakely 2005-07-11 10:03:55 UTC
Great, thanks for the quick responses.
Jon
Comment 4 Daniel Veillard 2005-09-05 09:44:06 UTC
This should be closed by release of libxslt-1.1.15

  thanks,

Daniel