Specify the XQuery version to which the query conforms.
A VersionDecl
specifies the version of XQuery to which the
query conforms. It serves to select the language rules specific to that
version, in order to provide selective support for multiple supported
versions.
Though Tamino currently supports only a single dialect of XQuery, the version declaration has been added in preparation of future development. Tamino accepts version "0.9" as a specification of its XQuery dialect, and this is the only value currently permitted in the version declaration.
The version declaration can occur only at the very beginning of the statement. It should not even be preceded by any comments, because different versions will differ in the lexical structure of comments.
The optional specification of an encoding is ignored by the query processor. In fact the encoding of the query has already been resolved on request level.
xquery version "0.9";
The following construct(s) refer to this construct: