From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Nov 13 2000 - 05:46:21 EST
On Sun, Nov 12, 2000 at 06:17:02PM -0800, David Moore wrote:
> The other day I sent a message regarding a bug in libxml's 2.2.7 xpath
> support in regards to evaluating relative paths.
Right,
> I think I've found the source of the bug. In 2.2.6, the following code
> appeared in xmlXPathEval() just before xmlXPathEvalExpr() gets called:
>
> if (ctx->node != NULL) {
> init = xmlXPathNewNodeSet(ctx->node);
> valuePush(ctxt, init);
> }
Humm, exact, I cleaned up this part but obviously went a bit too far :-)
> I hope this is helpful (relative path evaluation is very important to my
> application).
yes actually xmllint uses it for its shell code:
~/XML -> xmllint --shell --valid test/valid/REC-xml-19980210.xml
/ > cd spec
spec > ls
--- 15 header
--- 10 body
--- 9 back
spec > cd body
body > ls
-a- 6 div1
c-- 8
[...]
the cd comand uses it for its argument evaluation.
This was broken in 2.2.7, I restaured it, thanks for raising this
point !
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | libxml Gnome XML toolkit Tel : +33 476 615 257 | 655, avenue de l'Europe | http://xmlsoft.org/ Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Rpmfind search site http://www.w3.org/People/all#veillard%40w3.org | http://rpmfind.net/ ---- 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 : Mon Nov 13 2000 - 09:43:42 EST