Project

Profile

Help

Bug #6606 ยป evaluateXPathFromStringTest1.py

Martin Honnen, 2024-12-07 15:17

 
from saxonche import *

from pathlib import Path

xquery1 = '"Static base uri : " || static-base-uri()'

with PySaxonProcessor() as saxon_proc:
print(saxon_proc.version)

xpathProcessor = saxon_proc.new_xpath_processor()

workingDirPath = str(Path.cwd().absolute())

print(workingDirPath)

xpathProcessor.set_cwd(workingDirPath)

result = xpathProcessor.evaluate(xquery1)

print(result)
    (1-1/1)