Re: [xslt] Import/Include Stylesheets
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] Import/Include Stylesheets
- Date: Wed, 8 Aug 2001 04:36:37 -0400
On Wed, Aug 08, 2001 at 02:36:27PM +1000, Steve Ball wrote:
> libxslt is complaining that it cannot import (include)
> stylesheets which are specified using a relative URI.
> The problem is that I'm invoking it using xmlParseMemory
> to parse the stylesheet document and then xsltParseStylesheetDoc
> to compile the stylesheet. That is, I have already the stylesheet
> into memory. There doesn't seem to be a way of telling
> libxml/libxslt the base URI of the document so that it can
> resolve the relative URI.
Right, a document built in memory has no base a priori,
and hence all URI-References resolution are a problem.
> Tried using xmlNodeSetBase in between parsing the document
> and compiling it, but that doesn't appear to do the trick.
Hum, right, currently xmlNodeSetBase just works on element
I should fix it to work on element nodes. In the meantime
just provide the base URI in doc->URL.
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
firstname.lastname@example.org | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
] [Thread Prev