Re: [xslt] Status of python extensions?
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] Status of python extensions?
- Date: Tue, 11 Jun 2002 06:49:16 -0400
On Mon, Jun 10, 2002 at 04:30:22PM -0400, Norman Walsh wrote:
> What's the status of python extensions in xsltproc? Can I consume and
> produce new result tree fragments yet?
yes,
on input, the nodesets are received as an array of python libxml2.xmlCore
class instances (well that's what I expect to happen).
on output the main problem is if you generate new nodes to find a way to
deallocate them. Since you have a gnome-xml checkout, look at
python/tests/xpathret.py
basically the new nodes created in the foo() extension function
are kept in a new document, which in turn is freed at the end of the
processing.
Daniel
P.S.: seen your mail on Py-XML SIG but decided to stay quiet ;-)
--
Daniel Veillard | Red Hat Network https://rhn.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]