From: Art Gillespie (agillesp@i-no.com)
Date: Thu Feb 03 2000 - 20:04:01 EST
Hi guys,
Anyone familiar with the status of the XPath implementation in libxml?
I'm working on an XSLT implementation, but the expression evaluation
seems weird. I can't seem to mix path evaluation and the other types of
expression evaluation. When I use xmlXPathEval(), I just get the path
information up to the point where I do a comparison. e.g.
//revenue = 5
Returns all of the revenue nodes, and not just the ones where the value
is 5.
If I use xmlXPathEvalExpression, I always get an invalid operand error
with the carat at the last character of the expression.
I tried running the testXPath executable that comes with libxml and had
the same results. The shell output is below (This example uses full
syntax, but I assure you, I tried it with abbreviated syntax as well).
[agillesp@cc828112-a libxml-1.8.5]$ ./testXPath
'child::chapter[child::title="Chapter 5"]'
xmlXPathNodeCollectAndTest xpath.c:1858 : nodelist and node are NULL
xmlXPathNodeCollectAndTest xpath.c:1858 : nodelist and node are NULL
Error xpath.c:1093: Invalid operand
child::chapter[child::title="Chapter 5"]
^
xmlXPathEval: 1 object left on the stack
Object is empty (NULL)
So, am I doing something wrong?
Thanks,
Art
---- Message from the list xml@xmlsoft.org Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:30:01 EDT