saxon

How to use the collection()-function with saxonche

How to use the collection()-function with saxonche Question: I am trying to use the collection()-function using the new saxonche-Python-Module (https://pypi.org/project/saxonche/). I would expect, that it returns all XML-documents inside the current directory. Instead it just returns None. My code looks like: from saxonche import PySaxonProcessor from os import getcwd with PySaxonProcessor(license=False) as proc: print(proc.version) xq …

Total answers: 2

Using conditional includes/static parameters in Saxon/C?

Using conditional includes/static parameters in Saxon/C? Question: I’m trying to use XSLT conditional includes/static parameters with Saxon/C HE, but I’m getting the following error: Error Parameter $some_param cannot be supplied dynamically because it is declared as static To reproduce, I’ve used an example from a couple of answers I added a few years ago. (Here …

Total answers: 2

Making saxon-c available in Python

Making saxon-c available in Python Question: I have just read that Saxon is now available for Python, and that’s just great fun and good, but can anyone write a tutorial on how to make it available for Python/Anaconda/WingIDE or similar? I am used to installing with pip or conda, and pointing to a package/wheel for …

Total answers: 2

Use saxon with python

Use saxon with python Question: 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? Asked By: Maliq || Source Answers: There are two possible approaches: set up an HTTP service …

Total answers: 6