⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
»
SaxonC
Overview
Issues
Calendar
Blog
Forums
Files
Download (433 Bytes)
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)
Loading...