Modules and Prologs (XQuery)

THIS TOPIC APPLIES TO: yesSQL Server (starting with 2012)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

XQuery Prolog is a series of namespace declarations. In using the declare namespace in prolog, you can specify prefix to namespace binding and use the prefix in the query body.

Implementation Limitations

The following XQuery specifications are not supported in this implementation:

  • Module declaration (version)

  • Module declaration (module namespace)

  • Xmpspacedeclaration (xmlspace)

  • Default collation declaration (declare default collation)

  • Base URI declaration (declare base-uri)

  • Construction declaration (declare construction)

  • Default ordering declaration (declare ordering)

  • Schema import (import schema namespace)

  • Module import (import module)

  • Variable declaration in the prolog (declare variable)

  • Function declaration (declare function)

In This Section

XQuery Prolog
Describes the XQuery prolog.

See Also

XQuery Language Reference (SQL Server)