I developed a set of XSLT-2.0 XML-to-XML transforms with Oxygen that include some simple xsl:functions
. Now, I wish to run some functions on the nodes that are beyond what xsl:functions can reasonably do. To be more precise, I want to call an xsl:function extension in python that calls path-algorithms from the Python networkx library on node-sets.
Here's the problem:
- lxml lets me use extension functions but can't transform the XSLT-2.0 stylesheets
- saxon/c interfaces with Python but doesn't seem to accept python extension libraries
How to get Python to run XSLT-2.0 transforms and call extension functions written in Python ?