Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

zz:XPath20



XPath 2.0 is an expression language that allows the processing of values conforming to the data model defined in [XQuery/XPath Data Model (XDM)]. The data model provides a tree representation of XML documents as well as atomic values such as integers, strings, and booleans, and sequences that may contain both references to nodes in an XML document and atomic values. The result of an XPath expression may be a selection of nodes from the input documents, or an atomic value, or more generally, any sequence allowed by the data model.

The name of the language derives from its most distinctive feature, the path expression, which provides a means of hierarchic addressing of the nodes in an XML tree.

XPath is designed to be embedded in a host language such as [XSLT 2.0] or [XQuery]. XPath has a natural subset that can be used for matching (testing whether or not a node matches a pattern); this use of XPath is described in [XSLT 2.0].

XQuery Version 1.0 is an extension of XPath Version 2.0.

XPath also depends on and is closely related to the following specifications:

* [XQuery/XPath Data Model (XDM)] defines the data model that underlies all XPath expressions.
* [XQuery 1.0 and XPath 2.0 Formal Semantics] defines the static semantics of XPath and also contains a formal but non-normative description of the dynamic semantics that may be useful for implementors and others who require a formal definition.
* The type system of XPath is based on [XML Schema].
* The built-in function library and the operators supported by XPath are defined in [XQuery 1.0 and XPath 2.0 Functions and Operators].



http://www.w3.org/TR/xpath20/


下午把 Functions & Operators 列表抄了一份,觉得 date time 相关的 fn/op 定义真是太别扭了。集合操作,还有 uri/QName 操作是没有用过的。
那么 XPath20 本身只是讲定位吗?
Tags: 小东西, 转载
Subscribe

  • Calendars

    Created a bunch of calendars in Google Calendar, to celebrate JY's last day of preschool, prepare for the coming weeks. Google builtin…

  • 猪头了吧 T. Rowe Price

  • (no subject)

    昨晚上十二点了还在唠叨,跟孩子讲什么总有一天妈妈会离开啊,所以赶紧去跟爸爸睡吧,诸如此类。非要把人惹毛了才行。若是理智的人,断然不会给小孩子打这种预防针。徒然给小宝增加心理阴影。嘴上说说很容易,完全不想想后果。当初可意被关进电梯,后来不管是谁说一句“不要她了”都会让她大哭不止,这心理阴影多久才平复的…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments