On Wed, May 04, 2005 at 01:44:27PM -0700, Dan Mercer wrote:
> On Wed, May 04, 2005 at 04:18:21PM -0400, Daniel Veillard wrote:
>
> >> Is it possible to access calls like IOHTTPOpen from the python API, or is
> >> there a mechanism for providing a callback to some other HTTP
> >> implementation?
> >
> > normal Python IO should work fine. See how the examples use
> > StringIO inputs.
>
> This works well in the simple case where I just want to feed an XML document
> as a StringIO object to an inputBuffer, but it doesn't help me (I think) when
> that document contains xinclude or xsl:include elements that need to be
> handled
> in some special way.
>
> In my case, I would like to handle resolving and retrieving the hrefs for
> includes myself rather than going through nanoHTTP.
use the resolver override, Python example
python/tests/resolver.py
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
[EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml