[xslt] Python extension functions -- accessing args
- From: Phil Frost <indigo unununium org>
- To: xslt gnome org
- Subject: [xslt] Python extension functions -- accessing args
- Date: Fri, 5 Mar 2004 02:19:33 -0500
I've been trying to write some extension functions using python, and
I've been unable to learn how to access the parameters of the function
when the parameter is a node. For example, i can process fu('bar'), but
when i try fu(/doc/bar) I'm not sure how to get at the contents of the
"bar" element. Attached is a minimal program which demonstrates the
problem. As I can tell, if the parameter is a node, returned is a
PyCObject which looks like a list with one child PyCObject with no
methods. Any help is much appreciated.
test.py
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]