Re: [xslt] python binding for xsltSetLoaderFunc
- From: Daniel Veillard <veillard redhat com>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Cc: xml-bindings gnome org
- Subject: Re: [xslt] python binding for xsltSetLoaderFunc
- Date: Tue, 12 Oct 2004 10:49:16 -0400
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/
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]