Forums » Saxon/C Help and Discussions »
Using XQuery 4.0 with SaxonC EE Python
Added by Martin Honnen almost 2 years ago
Does the SaxonC API need a counterpart to the Java API https://www.saxonica.com/html/documentation12/javadoc/net/sf/saxon/s9api/XQueryCompiler.html#setLanguageVersion(java.lang.String)?
Because only doing
from saxoncee import *
with PySaxonProcessor(license=True) as proc:
print(proc.version)
proc.set_configuration_property('http://saxon.sf.net/feature/allowSyntaxExtensions', 'on')
print(proc.error_message)
xquery_processor = proc.new_xquery_processor()
result = xquery_processor.run_query_to_value(query_text = 'xquery version "4.0"; parse-html("<p>This is paragraph 1.<p>This is paragraph 2.")')
if xquery_processor.exception_occurred:
print(xquery_processor.error_message)
else:
print(result)
gives me
SaxonC-EE 12.0 from Saxonica
None
Cannot find a 1-argument function named Q{http://www.w3.org/2005/xpath-functions}parse-html()
meaning it looks as if with the existing API I can use Saxon EE with Python but can't use the new, experimental XPath/XQuery 4 features/functions.
Replies (1)
RE: Using XQuery 4.0 with SaxonC EE Python - Added by O'Neil Delpratt almost 2 years ago
Yes this looks like a bug. We are not supporting the XQuery 4.0 functions. Example added to unit tests.
Please register to reply