W3C

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.

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

2014-04-08

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

2014-04-08

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

2014-04-08

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

2014-04-08

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

2014-04-08

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-03-17

XQuery and XPath Full Text 1.0

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.

2011-03-17

XQuery Update Facility 1.0

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.

2010-12-14

XQuery 1.0: An XML Query Language (Second Edition)

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

2010-12-14

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

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

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

XQueryX Second Edition.

2010-12-14

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

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)

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

XSLT 2.0 and XQuery 1.0 Serialization (Second Edition)

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].

Group Notes

2014-09-18

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.

2014-04-08

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.

2014-04-08

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.

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].

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.

2007-03-23

XML Query (XQuery) Requirements

This document specifies goals, requirements, and usage scenarios for the W3C XML Query (XQuery) data model and query language. It also includes, for each requirement, a corresponding status, indicating the status of the requirement in the XQuery 1.0 family of W3C Recommendations.

2007-03-23

XML Query Use Cases

This document specifies usage scenarios for XQuery.

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

2014-10-07

XQueryX 3.1

XQueryX 3.1 defines an XML syntax for the semantics defined by XQuery 3.1.

2014-10-07

XQuery 3.1: An XML Query Language

XQuery 3.1 is a versatile query and application development language, capable of processing the information content of diverse data sources including structured and semi-structured documents, relational databases and tree-bases databases. The XQuery language is designed to support powerful optimizations and pre-compilation leading to very efficient searches over large amounts of data, including over so-called XML-native databases that read and write XML but have an efficient internal storage.

2014-10-07

XSLT and XQuery Serialization 3.1

This document defines serialization of an instance of the XQuery and XPath Data model Data Model into a sequence of octets, such as into XML, text, HTML, JSON.

2014-10-07

XML Path Language (XPath) 3.1

XPath is an expression language that allows the processing of values conforming to the data model defined in the XQuery and Xpath Data Model.

2014-10-07

XPath and XQuery Functions and Operators 3.1

XPath and XQuery Functions and Operators 3.0 defines a library of functions available for use in XPath, XQuery, XSLT and other languages.

2014-10-07

XQuery and XPath Data Model 3.1

The XPath and XQuery Data Model (XDM) 3.1 defines the data model on which all operations of XPath 3.1, XQuery 3.1, and XSLT 3.1 operate.

2014-09-18

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.

Other Working Drafts

2014-04-24

XQuery 3.1 Requirements and Use Cases

This document specifies goals and requirements for XQuery 3.1.

2013-01-08

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.

2012-03-27

XQuery and XPath Full Text 3.0 Requirements and Use Cases

This document specifies requirements and use cases for Full-Text Search for use in XQuery 3.0 and XPath 3.0.

2012-03-27

XQuery Update Facility 3.0 Requirements and Use Cases

This document specifies goals, requirements and use cases for the XQuery Update Facility 3.0.

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.