From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sat Oct 28 2000 - 06:09:13 EDT
On Sat, Oct 28, 2000 at 01:46:59AM +0200, TOM wrote:
> If we call ./testXPath --expr /EXAMPLE//title, it works, and if we look
> at xmlXPathEvalLocationPath(), we see that if the path begins with '//'
> xmlXPathRoot() isn't called, but if it begins with a simple '/' it is.
I made what seem the clean fix of the root evaluation problem.
It was just not done at the right places.
It also fixes the problem that Bjorn Reese raised Fri, 20 Oct 2000:
~/XML -> ./testXPath 'string(//title)'
Object is a string : Welcome to Gnome
~/XML -> ./testXPath --expr 'string(//title)'
Object is a string : Welcome to Gnome
~/XML -> ./testXPath --expr 'concat(string(//title),"hello")'
Object is a string : Welcome to Gnomehello
~/XML -> ./testXPath --expr 'concat("hello",string(//title))'
Object is a string : helloWelcome to Gnome
~/XML -> ./testXPath 'local-name(/EXAMPLE)'
Object is a string : EXAMPLE
~/XML -> ./testXPath --expr 'local-name(/EXAMPLE)'
Object is a string : EXAMPLE
~/XML ->
patch enclosed. There is still a couple of errors I'm chasing down
but no more related to root evaluation.
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 : Sat Oct 28 2000 - 09:44:49 EDT