Re: [xslt] Status of python extensions?
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] Status of python extensions?
- Date: Fri, 14 Jun 2002 08:39:30 -0400
On Fri, Jun 14, 2002 at 08:21:22AM -0400, Norman Walsh wrote:
> I've dug through the documentation and the examples a bit. Am I
> missing something? I can see examples of Python code using the
> gnome-xml and libxslt libraries, but where's the example of a simple
> XSLT stylesheet that calls a Python extension when processed by
> xsltproc? I assume some setup (at least an extension function
> namespace) is required.
libxslt (and xsltproc) are not tied to python. But you can write
Python code making use of them. In that framework it's possible to
do the binding. In practice, take libxslt/python/tests/pyxsltproc.py
look at libxslt/python/tests/extfunc.py for an example of building
and calling such an extension fuction, and customize pyxsltproc.py
to add your extensions either in the same module or in a .py imported
> Color me confused.
Admited, it's bleeding edge ATM !
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
email@example.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
] [Thread Prev