W3C

Site Navigation


XQuery Current Status

This page summarizes the relationships among specifications, whether they are finished standards or drafts. Below, each title links to the most recent version of a document. For related introductory information, see: Query.

Completed Work

W3C Recommendations have been reviewed by W3C Members, by software developers, and by other W3C groups and interested parties, and are endorsed by the Director as Web Standards. Learn more about the W3C Recommendation Track.

Group Notes are not standards and do not have the same level of W3C endorsement.

Standards

2011-03-17

XQuery Update Facility 1.0

translations · errata

This document defines an update facility that extends the XML Query language, XQuery. The XQuery Update Facility provides expressions that can be used to make persistent changes to instances of the XQuery 1.0 and XPath 2.0 Data Model.

2011-03-17

XQuery and XPath Full Text 1.0

translations · errata

This document defines the syntax and formal semantics of XQuery and XPath Full Text 1.0 which is a language that extends XQuery 1.0 [XQuery 1.0: An XML Query Language] and XPath 2.0 [XML Path Language (XPath) 2.0] with full-text search capabilities.

2010-12-14

XQuery 1.0 and XPath 2.0 Data Model (XDM) (Second Edition)

translations · errata

This document defines the W3C XQuery 1.0 and XPath 2.0 Data Model (XDM), which is the data model of [XPath 2.0], [XSLT 2.0], and [XQuery], and any other specifications that reference it. This data model is based on the [XPath 1.0] data model and earlier work on an [XML Query Data Model]. This document is the result of joint work by the [XSL Working Group] and the [XML Query Working Group].

2010-12-14

XQuery 1.0 and XPath 2.0 Formal Semantics (Second Edition)

translations · errata

This document defines formally the semantics of XQuery 1.0 [XQuery 1.0: An XML Query Language] and XPath 2.0 [XML Path Language (XPath) 2.0].

2010-12-14

XQuery 1.0 and XPath 2.0 Functions and Operators (Second Edition)

translations · errata

This document defines constructor functions, operators and functions on the datatypes defined in [XML Schema Part 2: Datatypes Second Edition] and the datatypes defined in [XQuery 1.0 and XPath 2.0 Data Model]. It also discusses functions and operators on nodes and node sequences as defined in the [XQuery 1.0 and XPath 2.0 Data Model]. These functions and operators are defined for use in [XML Path Language (XPath) 2.0], [XQuery 1.0: An XML Query Language] and [XSL Transformations (XSLT) Version 2.0] and other related XML standards. The signatures and summaries of functions defined in this document are available at: http://www.w3.org/2005/xpath-functions.

2010-12-14

XSLT 2.0 and XQuery 1.0 Serialization (Second Edition)

translations · errata

This document defines serialization of an instance of the data model as defined in [XQuery 1.0 and XPath 2.0 Data Model] into a sequence of octets. Serialization is designed to be a component that can be used by other specifications such as [XSL Transformations (XSLT) Version 2.0] or [XQuery 1.0: An XML Query Language].

2010-12-14

XQuery 1.0: An XML Query Language (Second Edition)

translations · errata

XQuery 1.1 fixes some bugs and adds some substantial new features to XQuery 1.0.

2010-12-14

XML Syntax for XQuery 1.0 (XQueryX) (Second Edition)

translations · errata

XQueryX Second Edition.

Group Notes

2011-01-25

XQuery Update Facility 1.0 Requirements

This document specifies goals and requirements for the XQuery Update Facility.

2011-01-25

XQuery Update Facility 1.0 Use Cases

This document specifies usage scenarios for the XQuery Update Facility.

2011-01-25

XQuery and XPath Full Text 1.0 Requirements

The document specifies requirements for Full-Text Search for use in XQuery [XQuery] and XPath [XPath].

2011-01-25

XQuery and XPath Full Text 1.0 Use Cases

This document specifies usage scenarios for full-text queries as part of XML Query [XQuery 1.0: An XML Query Language] and XPath [XML Path Language (XPath) 2.0].

2007-03-23

XML Query (XQuery) Requirements

The requirements for XQuery 1.0

2007-03-23

XML Query Use Cases

Some examples to help the Working Group reason about whether the XQuery language was meeting people's needs; today it provides some useful examples.

Drafts

Below are draft documents: Last Call Drafts, other Working Drafts. Some of these may become Web Standards through the W3C Recommendation Track process. Others may be published as Group Notes or become obsolete specifications.

Last Call Drafts

2011-12-13

XQuery 3.0: An XML Query Language

XQuery 3.0 (renamed from XQuery 1.1 to align with the family of "3.0" specifications) is a versatile markup language, capable of labeling the information content of diverse data sources including structured and semi-structured documents, relational databases, and object repositories. Important new features since XQuery 1.0 include:

  • The "group by" clause, windowing ("tumbling window" and "sliding window"), the "count" clause, and the "allowing empty" clause in FLWOR expressions
  • A try/catch capability to support application handling of errors
  • Literal function items, inline functions, dynamic function invocations, and function item coercion
  • Nondeterministic functions and private functions
  • A value-based switch expression (analogous to the existing typeswitch expression)
  • Computed namespace constructors
  • Declaration of serialization parameters
  • Support for new Functions and Operators 3.0 capabilities
  • Cleaner definition of module import

2011-12-13

XQueryX 3.0

XQueryX 3.0 (renamed from XQueryX 1.1 to align with the family of "3.0" specifications) defines an XML syntax for the semantics defined by XQuery 3.0. This publication is aligned with XQuery 3.0

2011-12-13

XSLT and XQuery Serialization 3.0

XSLT and XQuery Serialization 3.0 (renamed from XQueryX 1.1 to align with the family of "3.0" specifications) defines serialization of an instance of XDM 3.0 into a sequence of octets. Important new features in Serialization 3.0 include:

  • Supports serialization of function items
  • Adds a definition of a suppress-indentation serialization parameter
  • Clarifies how minimized attributes, as well as the "script" and "style" elements, are handled under the rules of the HTML output method

2011-12-13

XPath and XQuery Functions and Operators 3.0

XPath and XQuery Functions and Operators 3.0 (renamed from XPath and XQuery Functions and Operators 1.1 to align with the family of "3.0" specifications) defines a library of functions available for use in XPath 3.0, XQuery 3.0, and XSLT 3.0. Some of the new features since XPath 2.0 and XQuery 1.0 Functions and Operators include:

  • More than 30 new functions have been added, including functions transferred from the XSLT 2.0 specification into Functions and Operators 3.0 and additional versions of existing functions with different signatures
  • The syntax for regular expressions was enhanced to allow for non-capturing groups; additionally, a new flag value was added for regular-expression-related functions that accept a flag argument
  • Support for function items has been added in the form of a number of new functions
  • The description of fn:error was rewritten to accommodate the addition of try/catch capabilities in XQuery 3.0

2011-12-13

XQuery and XPath Data Model 3.0

XPath and XQuery Data Model (XDM) 3.0 (renamed from XPath and XQuery Functions and Operators (XDM) 1.1 to align with the family of "3.0" specifications) defines the data model on which all operations of XPath 3.0, XQuery 3.0, and XSLT 3.0 operate. In this version of XDM, two new data types have been added:

  • From XML Schema 1.1 Part 2 (Datatypes), the xs:dateTimeStamp data type
  • To support XPath 3.0's and XQuery 3.0's function item capabilities, a function item data type

Other Working Drafts

2011-12-13

XQuery and XPath Full Text 3.0

This document defines the syntax and formal semantics of XQuery and XPath Full Text 3.0, which is a language that extends XQuery 3.0 [XQuery 3.0: An XML Query Language] and XPath 3.0 [XML Path Language (XPath) 3.0] with full-text search capabilities.

2011-12-13

XQuery Update Facility 3.0

This document defines an update facility that extends the XML Query language, XQuery. The XQuery Update Facility 3.0 provides expressions that can be used to make persistent changes to instances of the XQuery and XPath Data Model 3.0.

2010-12-14

XQuery 3.0 Use Cases

The design of XQuery 3.0 was supported by use cases gathered following the XQuery 1.0 development timeframe. This Use Cases document (renamed from XQuery Use Cases 1.1 to align with the family of "3.0" specifications) corrects one Use Case.

2010-09-16

XQuery 3.0 Requirements

The design of XQuery 3.0 was driven by requirements gathered following the XQuery 1.0 development timeframe. This Requirements document (renamed from XQuery Requirements 1.1 to align with the family of "3.0" specifications) provides an update on the status of each requirements.

2010-04-08

XQuery Scripting Extension 1.0

This specification defines an extension to [XQuery 1.0] and [XQuery Update Facility]. Expressions can be evaluated in a specific order, with later expressions seeing the effects of the expressions that came before them. This specification introduces the concept of a block with local variable declarations, as well as several new kinds of expressions, including assignment, while, and exit expressions.

2008-12-03

XQuery Scripting Extension 1.0 Use Cases

This document specifies usage scenarios for the XQuery Scripting Extension.

2007-03-23

XQuery Scripting Extension 1.0 Requirements

This document specifies goals and requirements for the XQuery Scripting Extension.

Obsolete Specifications

These specifications have either been superseded by others, or have been abandoned. They remain available for archival purposes, but are not intended to be used.

Retired

2005-04-04

Building a Tokenizer for XPath or XQuery

This document describes possible strategies for tokenizing the [XML Path Language (XPath) 2.0] and [XQuery 1.0: An XML Query Language] languages, and is provided as a helpful guide to those who are designing an implementation for these languages, and as background material for the normative EBNF found in the language specifications. In the future this document may be expanded to cover more general parsing strategies.