sputnick-dev / saxon-lint

XPath3/XQuery 3.0/XSLT 2.0 cross-platform command line tool
38 stars 2 forks source link

Don't use net.sf.saxon.Query for xpath #6

Open sputnick-dev opened 6 years ago

sputnick-dev commented 6 years ago

From https://stackoverflow.com/a/49615317/465183

As far as I could judge from reading the Perl code the --xpath argument is feed to net.sf.saxon.Query as XQuery. I don't think a command line use of Saxon allows pure XPath evaluation. Martin Honnen

sputnick-dev commented 6 years ago

Saxon doesn't provide a command line switch to use pure XPath but as XPath is a subset of XQuery it can evaluate XPath expressions as XQuery. To use pure XPath you would need to write Java code using Saxon saxonica.com/html/documentation/xpath-api/s9api-xpath.html – Martin Honnen Apr 2 at 22:00

sputnick-dev commented 1 year ago

Reminder:

Check Gizmo

Try to update Saxon9: saxon-he-11.4.jar