Re: [xslt] python binding for xsltSetLoaderFunc

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 Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]