[xquery-talk] XQuery 3.1 and the version declaration in a query

Christian Grün christian.gruen at gmail.com
Sun Oct 26 10:59:58 PST 2014


> Is xquery version "3.1"; valid?

I think it should be (although it seems not to be mentioned in the
current version of the spec [1]).

> What should a XQuery processor that understands 3.1 do, if the query starts
> with xquery version "3.0";
> but contains expressions that are only valid in 3.1 and not in 3.0?

The spec offers three alternatives:

* Process the module using the specification of the XQuery version
identified in the version declaration.
* Process the module using the specification of XQuery 3.0. (→ 3.1)
* Raise a static error [err:XQST0031]

Hope this helps,
Christian

[1] http://www.w3.org/TR/2014/WD-xquery-31-20141007/#id-version-declaration



More information about the talk mailing list