Re: [xslt] python binding for xsltSetLoaderFunc
Daniel Veillard <[email protected]> Tue, 12 Oct 2004 10:49:16 -0400
| Newsgroups | gmane.comp.gnome.lib.xml.bindings,gmane.comp.gnome.lib.xslt |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Oct 11, 2004 at 11:29:47PM -0400, Clark C. Evans wrote: > Hello. I've got a stylesheet I'm trying to run both server side > and client side. On the client side, I use document() with relative > links to fetch other documents on the server. Unfortunately, when > I use libxslt on the server (via python binding), the document() > fails to resolve, for obvious reasons. I can't just make the URL > absolute, since cookies and other items are missing. So, I was > thinking that SetLoaderFunc might be my savior and allow me to > programmatically return sub-documents that I ask for. Am I dreaming? > If not, I don't see this xsltSetLoaderFunc in the python bindings, > what do I have to do to get this to work? use libxml2.setEntityLoader() there are examples in libxml2/python/tests showing how to use it. 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/