[xml-bindings]Parameter passing convention in extension functions ...



Hello list,

i'm currently writing some XSLT extension functions in python
and try to understand the calling parameter passing conventions.
To me it seems that the parameters "arrive" at the python function
in reverse calling order, i.e. a call to the extension function
<xsl:value-of select='foo:bar("a", "b", "c")' /> will actually call
the underlying python function as foo("c", "b", "a") -- nothing to
worry about, but it should be documented, or ?

As another question: when i call <xsl:value-of select='foo:bar(.)' />
what is the type of the parameter. A call print in python emits
'[<PyCObject object at 0x8189770>]' which doesn't seem to help a lot.
Is there any way to work on/with such a parameter from within python?

 tia Ralf Mattes




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