Project

Profile

Help

RE: Issue with SaxonC 12.4.2 command line tool query.exe ... ยป python-test-query3.py

Martin Honnen, 2024-05-16 13:22

 
from saxonche import PySaxonProcessor, PySaxonApiError


with PySaxonProcessor() as saxon_proc:

print(saxon_proc.version)

xquery_processor = saxon_proc.new_xquery_processor()

xquery_processor.set_parameter('n', saxon_proc.make_integer_value(13000))

try:
print(xquery_processor.run_query_to_value(query_file='query3.xq'))
except PySaxonApiError as e:
print(e)
    (1-1/1)