The <xquery> element

The xquery element of the configuration file contains properties specific to XQuery. Remember that these are defaults, they can always be overridden for specific queries. An attribute whose value is set to a zero-length string is ignored, the effect is the same as omitting the attribute.

Attribute

Applies to

Values

Effect

allowUpdate

EE

true|false

Indicates whether XQuery Update syntax is accepted.

constructionMode

HE PE EE

preserve|strip

Default value for construction mode in the static context.

defaultElementNamespace

HE PE EE

Namespace URI

Default namespace for elements and types.

defaultFunctionNamespace

HE PE EE

Namespace URI

Default namespace for functions.

emptyLeast

HE PE EE

true|false

True if the empty sequence comes first in sort order.

inheritNamespaces

HE PE EE

true|false

Default value for "inherit namespaces" in the static context.

moduleUriResolver

HE PE EE

Name of a class implementing ModuleURIResolver

Used for locating query modules referenced by "import module".

multipleModuleImports

EE

true|false

If set to true, the XQuery processor attempts to fetch an XQuery module appearing in an import module directive, whether or not a module with that module URI has already been loaded, unless the location URI of the existing module is the same as that of the requested module.

preserveBoundarySpace

HE PE EE

true|false

Policy for preserving boundary space within direct element content.

preserveNamespaces

HE PE EE

true|false

Default value for "preserve namespaces" in the static context.

requiredContextItemType

HE PE EE

An item type, e.g. document-node()

The required type for the context item.

schemaAware

EE

true|false

True if the query makes use of schema information.

staticErrorListener

HE PE EE

Name of a class implementing the JAXP interface ErrorListener

Receives notification of static errors occurring in a Query.

version

HE PE EE

1.0|3.0|3.1

Indicates whether XQuery 3.0 or 3.1 syntax is accepted. From Saxon 9.8, an XQuery 3.1 processor is always used by default. So setting this property has no effect.