XPath 2.0
XPath 2.0 is a version of the XPath language defined by the World Wide Web Consortium, W3C.[src] It became a recommendation on 23 January 2007.[src] As a W3C Recommendation it was superseded by XPath 3.0 on 10 April 2014.[src] XPath is used primarily for selecting parts of an XML document.[src] For this purpose the XML document is modelled as a tree of nodes.[src] XPath allows nodes to be selected by means of a hierarchic navigation path through the document tree.[src] The language is significantly larger than its predecessor, XPath 1.0, and some of the basic concepts such as the data model and type system have changed.[src] The two language versions are therefore described in separate articles.[src] XPath 2.0 is used as a sublanguage of XSLT 2.0, and it is also a subset of XQuery 1.0.[src] All three languages share the same data model (the XDM), type system, and function library, and were developed together and published on the same day.[src]
XPath 2.0 is a version of the XPath language defined by the World Wide Web Consortium, W3C.[src] It became a recommendation on 23 January 2007.[src] As a W3C Recommendation it was superseded by XPath 3.0 on 10 April 2014.[src] XPath is used primarily for selecting parts of an XML document.[src] For this purpose the XML document is modelled as a tree of nodes.[src] XPath allows nodes to be selected by means of a hierarchic navigation path through the document tree.[src] The language is significantly larger than its predecessor, XPath 1.0, and some of the basic concepts such as the data model and type system have changed.[src] The two language versions are therefore described in separate articles.[src] XPath 2.0 is used as a sublanguage of XSLT 2.0, and it is also a subset of XQuery 1.0.[src] All three languages share the same data model (the XDM), type system, and function library, and were developed together and published on the same day.[src] To ease transition, XPath 2.0 defines a mode of execution in which the semantics are modified to be as close as possible to XPath 1.0 behavior.[src] When using XSLT 2.0, this mode is activated by setting version="1.0" as an attribute on the xsl:stylesheet element.[src] This still doesn't offer 100% compatibility, but any remaining differences are only likely to be encountered in unusual cases.[src] ==Support== Support for XPath 2.0 is still limited.[src] ==References== ==External links== XPath 2.0 specification What's New in XPath 2.0[src]
25 sentences · 25 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"XPath 2.0." encyclopegia.org, 2025, https://encyclopegia.org/wiki/xpath-2-0. Accessed 06 December 2026.
Chicago
"XPath 2.0." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/xpath-2-0.
APA
encyclopegia.org. (2025). XPath 2.0. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/xpath-2-0
Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON