I need to process XSLT using python, currently I'm using lxml which only support XSLT 1, now I need to process XSLT 2 is there any way to use saxon XSLT processor with python?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
A Python interface for Saxon/C is in development and worth a look:
https://github.com/ajelenak/pysaxon
At the moment there is not, but you could use the subprocess module to use the Saxon processor:
There are two possible approaches:
set up an HTTP service that accepts tranformation requests and implements them by invoking Saxon from Java; you can then send the transformation requests from Python over HTTP
use the Saxon/C product
, currently available on prerelease: details here: http://www.saxonica.com/saxon-c/index.xml