Re: [Virtuoso-users] Confusion with xpath_eval

2011-11-03 Thread Ivan Mikhailov
Peter, I should add a hint to Mitko's answer. An XML entity is a pair of pointer to the whole document and a "bookmark" inside that document. All operations with entities will copy the pointer to the document (but not the document itself) and move "bookmark" in that document, only xml_cut() will r

Re: [Virtuoso-users] Confusion with xpath_eval

2011-11-02 Thread Mitko Iliev
Hi Peter, Please see my comments bellow: On Nov 2, 2011, at 6:06 AM, Peter Secomb wrote: > Hi everyone, > > I'm running into some difficulty with xpath_eval. I have a function that > loops through the results of xpath_eval when the index is set to 0 to have it > return a vector of results.

[Virtuoso-users] Confusion with xpath_eval

2011-11-02 Thread Peter Secomb
Hi everyone, I'm running into some difficulty with xpath_eval. I have a function that loops through the results of xpath_eval when the index is set to 0 to have it return a vector of results. However I'm getting unexpected behaviour. My test function is below. The function is commented to indi