Re: [xslt] document() source



On Thu, Oct 16, 2003 at 03:13:37PM +0200, Thijs van der Vossen wrote:
> Currently I am trying to find a way to have the xslt document() function get 
> xml from other sources than the filesystem when using libxslt from Python.

  ftp and http should work as they are provided by default within libxml2

> This has been talked about before on this list, for example in 
> http://mail.gnome.org/archives/xslt/2002-January/msg00010.html and 
> http://mail.gnome.org/archives/xml/2001-March/msg00022.html
> 
> >From the last post I understand I would need to register some callbacks with 
> xmlRegisterInputCallbacks(), but I can't seem to find this method anywhere in 
> the Python bindings and I do not see any other way to register I/O handlers 
> from Python.
> 
> Does anyone have any idea how to register I/O handlers or another way to have 
> the document() function get xml for other sources?

  have you read the libxml2 examples in libxml2/python/tests especially
  resolver.py ?

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]