XQuery 3.1 works fine with Saxon 9.8 EE or HE unless file states 'xquery version "3.1";', that results in " XQST0031: XQuery 3.1 was not enabled when invoking Saxon"
Replies (2)
Please register to reply
Added by Martin Honnen over 7 years ago
http://saxonica.com/html/documentation/conformance/xquery31.html says "From 9.8, Saxon always acts as an XQuery 3.1 processor" and I am able to run queries from the command line using XQuery 3.1 features fine with Saxon 9.8 HE or EE.
However, when the query file starts with a version declaration
xquery version "3.1";
both Saxon 9.8 HE and EE tell me
XQST0031: XQuery 3.1 was not enabled when invoking Saxon
http://saxonica.com/html/documentation/using-xquery/commandline.html does not mention any option to enable XQuery 3.1 and if it is supported by default and as the only version I don't understand the error anyway.
As a workaround you can use
--xqueryVersion:3.1
on the command line.
I think the problem arose because we were setting this automatically from our test driver when running XQ3.1 tests.
Will raise a bug.
Please register to reply