From: Martin Vidner (martin@artax.karlin.mff.cuni.cz)
Date: Fri Jan 05 2001 - 11:04:15 EST
On Wed, 3 Jan 2001, Daniel Veillard wrote:
> On Mon, Dec 18, 2000 at 03:20:19PM +0100, Martin Vidner wrote:
> > I found the following bug: XPath union expressions are not handled
> > correctly. It is apparent from the following test run:
> [...]
> > On the other hand, the expression '//chapter|//p' displays the correct
> > result but also leaves 1 object on the stack.
> Okay I fixed both problems, thanks for the report
Hi, and thanks for the fix. However, the bug seems to be long-lived:
===
[martin@pooh libxml2-2.2.11]$ ./testXPath './/chapter|.//p'
Object is a Node Set :
Set contains 5 nodes:
1 ELEMENT chapter
2 ELEMENT chapter
3 ELEMENT chapter
4 ELEMENT chapter
5 ELEMENT chapter
===
which is still wrong, missing six 'p' nodes. Using absolute path
'//chapter|//p' gives the correct result.
Martin
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Fri Jan 05 2001 - 11:43:40 EST