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 169718 - Bug with nested tags of same type
Bug with nested tags of same type
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.12
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-09 15:33 UTC by 67i9nk90
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description 67i9nk90 2005-03-09 15:33:23 UTC
Please describe the problem:
The xpath

  AAA[Title='foo']//BBB

should match in the document

  <AAA>
      <Title>foo</Title>
      <AAA>
          <BBB/>
      </AAA>
  </AAA>

but doesn't.

Steps to reproduce:
run xsltproc with the following stylesheet on the above document.

  <?xml version="1.0" encoding="utf-8"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  version="1.0">

    <xsl:template match="AAA[Title='foo']//BBB">
      <xsl:message>got one</xsl:message>
    </xsl:template>

  </xsl:stylesheet>


Actual results:
"got one" message not printed

Expected results:
"got one" printed once

Does this happen every time?


Other information:
From Daniel Veillard Wed, Mar 09, 2005 on xslt@gnome.org:

  Yes, there is a bug in pattern.c that I fixed in libxml2 version of
pattern.c and that I need to backport in some way in the more complex
framework of libxslt version.
Comment 1 Daniel Veillard 2005-03-30 10:02:58 UTC
Okay, fixed in CVS, the bug was the same as for pattern in libxml2.
I added your test case to libxslt regression suite, 

  thanks !

Daniel
Comment 2 Daniel Veillard 2005-09-05 09:41:52 UTC
This should be closed by release of libxslt-1.1.15

  thanks,

Daniel