GNOME Bugzilla – Bug 169718
Bug with nested tags of same type
Last modified: 2009-08-15 18:40:50 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.
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
This should be closed by release of libxslt-1.1.15 thanks, Daniel