Re: [xml] XPath context position



On Tue, Nov 06, 2001 at 10:36:52AM -0800, Alex Dron wrote:
Hi,
how can I change context position for XPath?
I have to evaluate the same boolean expression but against different nodes.
I guess I must do something with xmlXPathContextPtr, but I don't see any
appropriate function. Changing "here" doesn't affect behavior.

  ctxt->node and ctxt->doc is what you need to update.
here and origin are strictly for XPointer.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]