Re: [xslt] Reentrance with libxslt



On Tue, Jan 28, 2003 at 12:01:24PM +0100, Andreas Bille wrote:
> Yes, but the standard does not specify the URI-schemes the document
> function has to be able to handle.

  Right, the only requirement is that there is no fragment identifier
and resolving to the resource leads to XML which is converted to
an XPath data model.

> Particularly, I want to use vendor-specific uris,
> and it would be nice to be able to 'configure' knowledge about new
> schemes into this function at runtime, but...

  You can define new schemes at the libxml2 level and plug support for
new protocols. See <libxml/xmlIO.h> especially xmlRegisterInputCallbacks()

> >> this document function needs access to several services to
> >> perform its work, I need to be able to specify additional arguments to 
> >> this function, which are provided if it is called from the XSLT-
> >> processor. So, to conclude, I have looked for some variation of the 
> 
> >  Use the ctxt->_private field.
> 
> ... i will try your suggestion first.

  Okay, 

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]