Re: [xml] relative references for memory-originated documents?



On Tue, Oct 15, 2002 at 04:39:44AM -0400, Daniel Veillard wrote:
On Tue, Oct 15, 2002 at 12:42:43AM +0200, Marc Liyanage wrote:
I expected to find some API call that allows me to supply the processor 
with a base path against which all relative references can be resolved 
for this particular stylesheet. I used such a call in Java/JAXP in a 
similar situation.

How should I do this?

  update doc->URL just after the XML parsing.

  obviously enough xmlNodeSetBase(doc,  ...) does it too !

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]