XML Path Language (XPath) 3.1

XPath 2.0 以降

[16] XPath には元々の XPath 1.0 の他に大きな改訂を経た XPath 2.0 がありました。更に小改訂を加えた XPath 3.0XPath 3.1 がありました。

データモデル

[79] XDM を採用していました。

応用

[17] XSLT 2.0XPath 2.0 を採用しています。

[4] WSDM-MUWS では XPath 1.0 または XPath 2.0 が利用できます。

[15] Basic XML Schema Patterns for Databinding Version 1.0 ( 版) <http://www.w3.org/TR/2009/NOTE-xmlschema-patterns-20090505/#patterns-xpath>Advanced XML Schema Patterns for Databinding Version 1.0 ( 版) <http://www.w3.org/TR/2009/NOTE-xmlschema-patterns-advanced-20090505/#patterns-xpath>

[36] STXPathXPath 2.0 の変種です。

関連

[20] XPath 1.0 では XPointer での利用が主要な応用の1つとして想定されていましたが、 XPath 2.0 ではそうではないようです。 XPointer 用の XPointer scheme として xpath2() が定義されてはいます。

XPath 1.0 との関係

[18] XPath 2.0XPath 1.0 の改訂版ですが、言語仕様が大幅に改訂されています。 特に、 XPath 1.0弱い型付け言語でしたが、 XPath 2.0強い型付け言語となっています。

[21] DOM XPath 仕様は XPath 1.0 にのみ対応しています。現時点で XPath 2.0 に対応させる動きはないようです。

XQuery 1.0 との関係

[19] XPath 2.0XQuery 1.0 と協同して開発されました。両者は構文意味論において基礎的な部分が共通しています。

歴史

[1] XQuery 1.0 and XPath 2.0 Data Model <http://www.w3.org/2004/07/data-model-issues.html> (名無しさん)

[2] XQuery 1.0 and XPath 2.0 Data Model <http://www.w3.org/2004/10/data-model-issues.html> (名無しさん)

[3] Data Model Last Call Comments <http://www.w3.org/XML/2003/05/xpath-datamodel-issues/>

[5] XML Path Language (XPath) 2.0 (2007-01-19 08:23:20 +09:00 版) <http://www.w3.org/TR/2007/REC-xpath20-20070123/> (名無しさん 2007-01-26 17:14:05 +00:00)

[6] XQuery 1.0 and XPath 2.0 Functions and Operators (2007-01-19 07:02:42 +09:00 版) <http://www.w3.org/TR/2007/REC-xpath-functions-20070123/> (名無しさん 2007-01-27 03:27:39 +00:00)

[7] XQuery 1.0 and XPath 2.0 Data Model (XDM) (2007-01-23 07:26:51 +09:00 版) <http://www.w3.org/TR/2007/REC-xpath-datamodel-20070123/> (名無しさん 2007-01-27 04:58:33 +00:00)

[8] XQuery 1.0 and XPath 2.0 Formal Semantics (2007-01-19 07:16:26 +09:00 版) <http://www.w3.org/TR/2007/REC-xquery-semantics-20070123/> (名無しさん 2007-01-27 05:39:24 +00:00)

[9] XQuery 1.0 and XPath 2.0 Full-Text 1.0 (2007-05-17 06:07:03 +09:00 版) <http://www.w3.org/TR/2007/WD-xpath-full-text-10-20070518/> (名無しさん 2007-05-28 23:34:27 +00:00)

[10] XQuery 1.0 and XPath 2.0 Full-Text 1.0 Requirements (2007-05-19 03:59:30 +09:00 版) <http://www.w3.org/TR/2007/WD-xpath-full-text-10-requirements-20070518/> (名無しさん 2007-05-28 23:35:16 +00:00)

[11] XQuery 1.0 and XPath 2.0 Full-Text 1.0 Use Cases ( 版) <http://www.w3.org/TR/2007/WD-xpath-full-text-10-use-cases-20070518/> (名無しさん 2007-05-28 23:35:58 +00:00)

[12] XML Path Language (XPath) 2.0 (Second Edition) ( 版) <http://www.w3.org/TR/2009/PER-xpath20-20090421/>

[13] XQuery 1.0 and XPath 2.0 Formal Semantics (Second Edition) ( 版) <http://www.w3.org/TR/2009/PER-xquery-semantics-20090421/>

[14] XQuery 1.0 and XPath 2.0 Functions and Operators (Second Edition) ( 版) <http://www.w3.org/TR/2009/PER-xpath-functions-20090421/>

[22] XProc: An XML Pipeline Language ( 版) <http://www.w3.org/TR/2010/REC-xproc-20100511/#xpath-context>

[23] XSLT 2.0 and XQuery 1.0 Serialization (Second Edition) ( ( 版)) <http://www.w3.org/TR/2010/REC-xslt-xquery-serialization-20101214/#xslt20>

[24] XML Path Language (XPath) 2.0 (Second Edition) ( ( 版)) <http://www.w3.org/TR/2010/REC-xpath20-20101214/>

[25] Web Services Fragment (WS-Fragment) ( ( 版)) <http://www.w3.org/TR/2011/REC-ws-fragment-20111213/#XPath20>

[26] Web Services Eventing (WS-Eventing) ( ( 版)) <http://www.w3.org/TR/2011/REC-ws-eventing-20111213/#Dialect>

[27] Web Services Enumeration (WS-Enumeration) ( ( 版)) <http://www.w3.org/TR/2011/REC-ws-enumeration-20111213/#Dialect>

[28] W3C XML Schema Definition Language (XSD) 1.1 Part 2: Datatypes ( ( 版)) <http://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#xr-assertions>

[29] W3C XML Schema Definition Language (XSD) 1.1 Part 1: Structures ( ( 版)) <http://www.w3.org/TR/2012/REC-xmlschema11-1-20120405/#Constraint_Summary>

[30] W3C XML Schema Definition Language (XSD) 1.1 Part 1: Structures ( ( 版)) <http://www.w3.org/TR/2012/REC-xmlschema11-1-20120405/#icd-selector>

[31] W3C XML Schema Definition Language (XSD) 1.1 Part 1: Structures ( ( 版)) <http://www.w3.org/TR/2012/REC-xmlschema11-1-20120405/#sec-c-selector-xpath>

[32] RIF Combination with XML data (Second Edition) ( ( 版)) <http://www.w3.org/TR/2013/NOTE-rif-xml-data-20130205/>

[33] The oxy_xpath() Function ( ( 版)) <http://www.oxygenxml.com/doc/ug-editor/concepts/dg-xpath-function.html>

[34] XML Signature Syntax and Processing Version 2.0 ( ( 版)) <http://www.w3.org/TR/xmldsig-core2/#sec-Type-xml>

[35] 396966 – Xpath 2.0 ( ( 版)) <https://bugzilla.mozilla.org/show_bug.cgi?id=396966>

[37] ( ( 版)) <http://www.iana.org/assignments/media-types/application/urc-uisocketdesc+xml>

[38] eXtensible Access Control Markup Language (XACML) Version 3.0 ( ( 版)) <http://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html#_Toc297001083>

[39] eXtensible Access Control Markup Language (XACML) Version 3.0 ( ( 版)) <http://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html#_Toc297001083>

[40] DOM Event I/O Processor for SCXML ( ( 版)) <http://www.w3.org/TR/2015/NOTE-dom-iop-20150806/>

[41] ( 版) <https://www.iana.org/assignments/media-types/application/urc-uisocketdesc+xml>

XPath 2.0 fragments

[42] XQuery and XPath Full Text 3.0 ( ( 版)) <http://www.w3.org/TR/2015/REC-xpath-full-text-30-20151124/>

XPath 3.0

[43] XML Path Language (XPath) 3.0 ( ( 版)) <http://www.w3.org/TR/2010/WD-xpath-30-20101214/>

[44] XPath and XQuery Functions and Operators 3.0 ( ( 版)) <http://www.w3.org/TR/2013/PR-xpath-functions-30-20131022/>

[45] XML Path Language (XPath) 3.0 ( ( 版)) <http://www.w3.org/TR/2013/PR-xpath-30-20131022/>

[46] XML Path Language (XPath) 3.0 ( ( 版)) <http://www.w3.org/TR/2014/REC-xpath-30-20140408/>

[47] XPath and XQuery Functions and Operators 3.0 ( ( 版)) <http://www.w3.org/TR/2014/REC-xpath-functions-30-20140408/>

[48] XPath and XQuery Functions and Operators 3.0 ( ( 版)) <http://www.w3.org/TR/xpath-functions-3/>

[49] XSLT and XQuery Serialization 3.0 ( ( 版)) <http://www.w3.org/TR/xslt-xquery-serialization-3/>

[50] XQuery and XPath Full Text 3.0 ( ( 版)) <http://www.w3.org/TR/2015/CR-xpath-full-text-30-20150312/>

[51] XQuery and XPath Full Text 3.0 Requirements and Use Cases ( ( 版)) <http://www.w3.org/TR/2015/WD-xpath-full-text-30-requirements-use-cases-20150312/>

[52] XQuery and XPath Full Text 3.0 Requirements and Use Cases ( ( 版)) <http://www.w3.org/TR/2015/NOTE-xpath-full-text-30-requirements-use-cases-20151210/>

XPath 3.1

[53] XML Path Language (XPath) 3.1 ( ( 版)) <http://www.w3.org/TR/2014/WD-xpath-31-20140424/>

[54] XPath and XQuery Functions and Operators 3.1 ( ( 版)) <http://www.w3.org/TR/2014/WD-xpath-functions-31-20140424/>

[55] XQuery and XPath Data Model 3.1 ( ( 版)) <http://www.w3.org/TR/2014/WD-xpath-datamodel-31-20140424/>

[56] XSLT and XQuery Serialization 3.1 ( ( 版)) <http://www.w3.org/TR/2014/WD-xslt-xquery-serialization-31-20140424/>

[57] XQuery 3.1 Requirements and Use Cases ( ( 版)) <http://www.w3.org/TR/2014/WD-xquery-31-requirements-20140424/>

[58] XQuery 3.1: An XML Query Language ( ( 版)) <http://www.w3.org/TR/2014/WD-xquery-31-20140424/>

[59] XQueryX 3.1 ( ( 版)) <http://www.w3.org/TR/2014/WD-xqueryx-31-20140424/>

[60] XML Path Language (XPath) 3.1 ( ( 版)) <http://www.w3.org/TR/2014/CR-xpath-31-20141218/>

[61] XQuery 3.1: An XML Query Language ( ( 版)) <http://www.w3.org/TR/2014/CR-xquery-31-20141218/>

[62] XQueryX 3.1 ( ( 版)) <http://www.w3.org/TR/2014/CR-xqueryx-31-20141218/>

[63] XPath and XQuery Functions and Operators 3.1 ( ( 版)) <http://www.w3.org/TR/2014/CR-xpath-functions-31-20141218/>

[64] XQuery and XPath Data Model 3.1 ( ( 版)) <http://www.w3.org/TR/2014/CR-xpath-datamodel-31-20141218/>

[65] XSLT and XQuery Serialization 3.1 ( ( 版)) <http://www.w3.org/TR/2015/CR-xslt-xquery-serialization-31-20150219/>

[66] XQuery 3.1: An XML Query Language ( ( 版)) <http://www.w3.org/TR/2015/CR-xquery-31-20151217/>

[67] XML Path Language (XPath) 3.1 ( ( 版)) <http://www.w3.org/TR/2015/CR-xpath-31-20151217/>

[68] XSLT and XQuery Serialization 3.1 ( ( 版)) <http://www.w3.org/TR/2015/CR-xslt-xquery-serialization-31-20151217/>

[69] XPath and XQuery Functions and Operators 3.1 () <https://www.w3.org/TR/2016/CR-xpath-functions-31-20161213/>

[70] XML Path Language (XPath) 3.1 () <https://www.w3.org/TR/2017/PR-xpath-31-20170117/>

[71] XPath Next Community Group () <https://www.w3.org/community/xpath-next/>

[72] XPath-Next/README.md at master · XPath-Next/XPath-Next () <https://github.com/XPath-Next/XPath-Next/blob/master/README.md>

[73] XPath-Next/XPath-Next: Main site of information of XPath Next () <https://github.com/XPath-Next/XPath-Next>

[74] XPath-Next by XPath-Next () <https://xpath-next.github.io/XPath-Next/>

[75] Schematron

[76] XML Path Language (XPath) 3.1 () <https://www.w3.org/TR/2017/REC-xpath-31-20170321/>

[77] XPath 3.1XQuery 3.1 とほとんど同じで少し違うんだけど、 なんでほとんど同じ内容をコピペした仕様書になってるんだろう。 XPath 2.0 & XQuery 1.0 時代からもう何年も無駄なコピペ編集作業を続けるのは大変だと思うんだけど、 中の人は苦じゃないんだろうな。それとも XPath 2.0 派と XQuery 派のメンツみたいな何かがあるんだろうか。

XDM とか関数とかは共通の別仕様になってるんだから (それはそれで個々の仕様書の重複がなぜか多い気がするんだけど)、 XPath 2.0XQuery の本体仕様書の共通部分ももっと統一して良いと思うんだけど。

[78] 統一しちゃうとどっちもほとんど同じじゃん、という本質的な問題が見えてしまうから、 敢えてわかりにくくしてるという説もあるか?