Project

Profile

Help

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"

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.


Replies (2)

RE: 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" - Added by Michael Kay over 7 years ago

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.

    (1-2/2)

    Please register to reply