辛弃疾字什么号什么| 藏风聚气是什么意思| 1984年属什么| 柚子是什么季节的水果| 吹空调喉咙痛什么原因| 长期喝什么茶能降三高| 三白眼是什么意思| 益气是什么意思| 入睡难一般是什么原因造成的| 神迹是什么意思| 双侧卵巢多囊性改变是什么意思| 打不死的小强什么意思| 裸睡是什么意思| 吃羊肉不能吃什么水果| 射手座的幸运色是什么颜色| 吃驼奶粉有什么好处| 甲状腺激素是什么| btob是什么意思| 多吃香蕉有什么好处和坏处| 头皮痒用什么药| 古代上元节是什么节日| 函询是什么意思| 什么东西能吃不能碰| 高铁服务员叫什么| 孕妇dha什么时候吃| 铁棍山药和普通山药有什么区别| 海洋中最多的生物是什么| 中国梦是什么| 玩微博的都是什么人| 下呼吸道感染吃什么药| 烟酒不沾的人什么性格| 为什么不能用红笔写名字| 属鼠的守护神是什么菩萨| 头疼恶心是什么原因| 莫逆之交什么意思| 婴儿坐飞机需要什么证件| 结晶是什么| 六畜大宝在农家是什么生肖| 拉脱水是什么症状| 长什么样子| 局是什么生肖| 掉头发是什么原因男性| 三个龙读什么| 衣原体感染男性吃什么药| 宫颈鳞状上皮增生是什么意思| 过年给老人买什么| 月建是什么意思| 月亮象征着什么| 淋巴结是什么东西| 总是打哈欠是什么原因| 什么情况下会流前列腺液| 农历10月26日是什么星座| 羡煞旁人是什么意思| 子宫肌瘤是什么原因造成的| 木瓜是什么味道| 凡士林是什么| 消化腺包括什么| 孙策和孙权什么关系| 脖子上长癣是什么原因| 心境障碍是什么病| b12是什么| 儿童坐动车需要带什么证件| 口腔医学和口腔医学技术有什么区别| 脾虚痰湿吃什么中成药| 检查痛风挂什么科| 下面痒吃什么消炎药| 减肥有什么好方法| 风寒感冒吃什么药最快| 长寿面什么时候吃| 什么和什么丽| 手机充电慢是什么原因| 腿痛挂什么科| 脚浮肿吃什么药| 安利是什么意思| 3月21日什么星座| 小狗需要打什么疫苗| 刮宫后能吃什么水果| 陌陌是干什么的| 牙齿松动了有什么办法能固齿吗| 护照免签是什么意思| 一什么青蛙| 小青龙是什么龙虾| 脚掌痒是什么原因| 绽开什么| 干眼症用什么眼药水| 庚五行属什么| 女人喝蛇汤有什么好处| 男性生殖器叫什么| 失眠是什么原因| 松花蛋是什么蛋| 胃肠感冒可以吃什么水果| 大学记过处分有什么影响| 冒冷汗是什么原因| 吃什么水果变白| 阿尔茨海默病吃什么药| 剑玉是什么| 着凉拉肚子吃什么药| 螃蟹喜欢吃什么| 风湿挂什么科| 大红袍属于什么茶| 树脂是什么材质| 铁锈红配什么颜色好看| 脚丫痒是什么原因| 什么是干股| 分心念什么| 种植什么好| peb是什么意思| 用盐洗脸有什么好处| 起夜是什么意思| 日央读什么| 吃多了拉肚子是什么原因| 心电轴左偏是什么意思| 7月1号是什么节| 流光是什么意思| 牙龈有点发黑是什么原因| 缓释片是什么意思| 乳房皮肤痒是什么原因| 无水酥油是什么油| 6代表什么| 痨病是什么病| 什么时候有胎动| 八面玲珑是什么数字| 正财代表什么| 心什么如什么| 尾巴长长的是什么鸟| 汉防己甲素片治什么病| 乳头痛什么原因| 多字五行属什么| 疱疹是什么病啊| 一天吃一个苹果有什么好处| 猎奇是什么意思| 不含而立是什么意思| 披什么散什么| 保姆是什么意思| ig是什么意思| 牙膏洗脸有什么好处和坏处| 河南是什么气候| 真心是什么意思| 医学检验技术是干什么的| 叫嚣是什么意思| 不易是什么意思| 二十二岁属什么| 什么辣椒又香又辣| 什么的生活| 六八年属什么生肖| 头孢和什么药不能一起吃| 三福是什么| 紧锣密鼓是什么意思| 独在异乡为异客异是什么意思| 今年什么时间进伏| 燕麦片热量高为什么还能减肥| 扁桃体化脓是什么原因引起的| 高压低是什么原因| 依依不舍的依依是什么意思| 什么手串最好| 老人过生日送什么礼物好| 蟑螂长什么样子| 喝中药为什么会拉肚子| 干火重吃什么药管用| 哈气是什么意思| 为什么会口臭的原因| 白带长什么样| 甲状腺斑块是什么意思| 喝咖啡有什么好处和坏处| 七点到九点是什么时辰| id锁是什么| 一笑了之是什么意思| 基友什么意思| 什么是膳食纤维| oversize是什么意思| 大象灰配什么颜色好看| 三番四次是什么生肖| 四维和大排畸有什么区别| 攥是什么意思| 青蛙趴有什么好处| 眼皮浮肿是什么原因| 药食同源是什么意思| 游离脂肪酸是什么| 阿姨是什么意思| 如厕什么意思| 难以启齿是什么意思| 海员是干什么的| 丘疹性荨麻疹用什么药| 什么时候可以上环最好的| crp是什么意思| 竹勿念什么| 甲肝戊肝是什么病| 网店卖什么好| 汽球是什么生肖| 脚肿挂什么科室| 不让看朋友圈显示什么| 三魂七魄是什么| 脂肪酶是什么| 不能人道什么意思| 铜镯子对人有什么好处| 大便发黑是什么原因| 壬水是什么水| 越南有什么特产| 股票里xd是什么意思| 痛风吃什么食物| 八零年属什么生肖| 怀孕了什么不可以吃| 十二生肖为什么老鼠排第一| 静对什么| 血糖高吃什么水果好能降糖| napoleon是什么酒| 沙拉是什么| 炭疽是什么| 夏至什么意思| 胃低分化腺癌是什么意思| 肌肉损伤吃什么药| 油炸食品用什么油最好| 哺乳期发烧吃什么药| 心有余而力不足什么意思| 蚂蚁为什么会咬人| 脂蛋白a高吃什么药| 尤物是什么意思| 4月5号是什么星座| 甲状腺看什么门诊| 盖世英雄是什么意思| 惹上官司是犯了什么煞| 仪表堂堂是什么生肖| 瞅瞅是什么意思| 蝴蝶是什么变的| 时隔是什么意思| pcr是什么意思| 中气是什么意思| 月经来头疼是什么原因引起的| 铁锚是什么意思| 男性前列腺炎有什么症状| 风寒感冒和风热感冒有什么区别| 抗病毒什么药效果好| 十五岁是什么年华| 青光眼用什么眼药水| 什么如什么| ich是什么意思| 氟西汀是什么药| 中国四大国粹是什么| 多吃核桃有什么好处和坏处| 吃头孢不能吃什么| 戴银镯子变黑是什么原因| 同人文什么意思| 不长头发是什么原因| 红色加黄色是什么颜色| 38岁属什么| 曹操是个什么样的人| 什么是偏爱| 宫禁糜烂用什么药| 脚气用什么药膏| 棉花什么时候传入中国| 浙江属于什么方向| 孩子鼻子出血什么原因造成的| 针灸有什么作用| 猫眼石是什么材质| 病毒性肠炎吃什么药| 膝盖疼挂号挂什么科| 乳腺穿刺是什么意思| 败血症是什么症状| 无力感什么意思| 多梦吃什么药效果最好| 眼睛充血用什么药| 医疗美容需要什么资质| 一什么之什么成语| 三代试管是什么意思| 百度Jump to content

《上墙》绿色度测评报告

From Wikipedia, the free encyclopedia
百度 参加凤凰汽车团购要收费吗?凤凰汽车给您提供全程免费服务,在您参与汽车团购的过程中是绝对不收取任何费用的,我们做的只是为大家提供一个更优质的购车环境,更低的购车价格如何参加团购?您所需要做的事情只是在您意向车型团购中填写相应真实信息,我们会在您报名后及时与您联系,并与您预约具体团购事项。

XPath 2.0 is a version of the XPath language defined by the World Wide Web Consortium, W3C. It became a recommendation on 23 January 2007.[1] As a W3C Recommendation it was superseded by XPath 3.0 on 10 April 2014.

XPath is used primarily for selecting parts of an XML document. For this purpose the XML document is modelled as a tree of nodes. XPath allows nodes to be selected by means of a hierarchic navigation path through the document tree.

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. The two language versions are therefore described in separate articles.

XPath 2.0 is used as a sublanguage of XSLT 2.0, and it is also a subset of XQuery 1.0. 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.

Data model

[edit]

Every value in XPath 2.0 is a sequence of items. The items may be nodes or atomic values. An individual node or atomic value is considered to be a sequence of length one. Sequences may not be nested.

Nodes are of seven kinds, corresponding to different constructs in the syntax of XML: elements, attributes, text nodes, comments, processing instructions, namespace nodes, and document nodes. (The document node replaces the root node of XPath 1.0, because the XPath 2.0 model allows trees to be rooted at other kinds of node, notably elements.)

Nodes may be typed or untyped. A node acquires a type as a result of validation against an XML Schema. If an element or attribute is successfully validated against a particular complex type or simple type defined in a schema, the name of that type is attached as an annotation to the node, and determines the outcome of operations applied to that node: for example, when sorting, nodes that are annotated as integers will be sorted as integers.

Atomic values may belong to any of the 19 primitive types defined in the XML Schema specification (for example, string, boolean, double, float, decimal, dateTime, QName, and so on). They may also belong to a type derived from one of these primitive types: either a built-in derived type such as integer or Name, or a user-defined derived type defined in a user-written schema.

Type system

[edit]
The XDM type hierarchy

The type system of XPath 2.0 is noteworthy for the fact that it mixes strong typing and weak typing within a single language.

Operations such as arithmetic and boolean comparison require atomic values as their operands. If an operand returns a node (for example, @price * 1.2), then the node is automatically atomized to extract the atomic value. If the input document has been validated against a schema, then the node will typically have a type annotation, and this determines the type of the resulting atomic value (in this example, the price attribute might have the type decimal). If no schema is in use, the node will be untyped, and the type of the resulting atomic value will be untypedAtomic. Typed atomic values are checked to ensure that they have an appropriate type for the context where they are used: for example, it is not possible to multiply a date by a number. Untyped atomic values, by contrast, follow a weak typing discipline: they are automatically converted to a type appropriate to the operation where they are used: for example with an arithmetic operation an untyped atomic value is converted to the type double.

Path expressions

[edit]

The location paths of XPath 1.0 are referred to in XPath 2.0 as path expressions. Informally, a path expression is a sequence of steps separated by the "/" operator, for example a/b/c (which is short for child::a/child::b/child::c). More formally, however, "/" is simply a binary operator that applies the expression on its right-hand side to each item in turn selected by the expression on the left hand side. So in this example, the expression a selects all the element children of the context node that are named <a>; the expression child::b is then applied to each of these nodes, selecting all the <b> children of the <a> elements; and the expression child::c is then applied to each node in this sequence, which selects all the <c> children of these <b> elements.

The "/" operator is generalized in XPath 2.0 to allow any kind of expression to be used as an operand: in XPath 1.0, the right-hand side was always an axis step. For example, a function call can be used on the right-hand side. The typing rules for the operator require that the result of the first operand is a sequence of nodes. The right hand operand can return either nodes or atomic values (but not a mixture). If the result consists of nodes, then duplicates are eliminated and the nodes are returned in document order, an ordering defined in terms of the relative positions of the nodes in the original XML tree.

In many cases the operands of "/" will be axis steps: these are largely unchanged from XPath 1.0, and are described in the article on XPath 1.0.

Other operators

[edit]

Other operators available in XPath 2.0 include the following:

Operators Effect
+, -, *, div, mod, idiv Arithmetic on numbers, dates, and durations
=, !=, <, >, <=, >= General comparison: compare arbitrary sequences. The result is true if any pair of items, one from each sequence, satisfies the comparison
eq, ne, lt, gt, le, ge Value comparison: compare single items
is Compare node identity: true if both operands are the same node
<<, >> Compare node position, based on document order
union, intersect, except Compare sequences of nodes, treating them as sets, returning the set union, intersection, or difference
and, or boolean conjunction and disjunction. Negation is achieved using the not() function.
to defines an integer range, for example 1 to 10
instance of determines whether a value is an instance of a given type
cast as converts a value to a given type
castable as tests whether a value is convertible to a given type

Conditional expressions may be written using the syntax if (A) then B else C.

XPath 2.0 also offers a for expression, which is a small subset of the FLWOR expression from XQuery. The expression for $x in X return Y evaluates the expression Y for each value in the result of expression X in turn, referring to that value using the variable reference $x.

Function library

[edit]

The function library in XPath 2.0 is greatly extended from the function library in XPath 1.0. (Bold items are available in XPath 1.0)

The functions available include the following:

Purpose Example Functions
General string handling lower-case, upper-case, substring, substring-before, substring-after, translate, starts-with, ends-with, contains, string-length, concat, normalize-space, normalize-unicode
Regular expressions matches, replace, tokenize
Arithmetic count, sum, avg, min, max, round, floor, ceiling, abs
Dates and times adjust-dateTime-to-timezone, current-dateTime, day-from-dateTime, month-from-dateTime, days-from-duration, months-from-duration, etc.
Properties of nodes name, node-name, local-name, namespace-uri, base-uri, nilled
Document handling doc, doc-available, document-uri, collection, id, idref
URIs encode-for-uri, escape-html-uri, iri-to-uri, resolve-uri
QNames QName, namespace-uri-from-QName, prefix-from-QName, resolve-QName
Sequences insert-before, remove, subsequence, index-of, distinct-values, reverse, unordered, empty, exists
Type checking one-or-more, exactly-one, zero-or-one

Backwards compatibility

[edit]

Because of the changes in the data model and type system, not all expressions have exactly the same effect in XPath 2.0 as in 1.0. The main difference is that XPath 1.0 was more relaxed about type conversion, for example comparing two strings ("4" > "4.0") was quite possible but would do a numeric comparison; in XPath 2.0 this is defined to compare the two values as strings using a context-defined collating sequence.

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. When using XSLT 2.0, this mode is activated by setting version="1.0" as an attribute on the xsl:stylesheet element. This still doesn't offer 100% compatibility, but any remaining differences are only likely to be encountered in unusual cases.

Support

[edit]

Support for XPath 2.0 is still limited.

References

[edit]
  1. ^ "XML and Semantic Web W3C Standards Timeline" (PDF). 4 February 2012. Archived from the original (PDF) on 24 April 2013. Retrieved 4 February 2012.
[edit]
肚子冰凉是什么原因 胸部周围痒是什么原因 中指尖麻木是什么原因 egfr医学上是什么意思 foreverlove是什么意思
马赛克什么意思 pg是什么意思 什么样的人容易高反 梦见背死人是什么意思 种牙是什么意思
补体c1q偏高说明什么 外婆的妈妈叫什么 cha什么意思 为什么老是睡不着 暂缓参军是什么意思
沙葱是什么 血小板低会有什么症状 整夜做梦是什么原因 塞来昔布是什么药 主动脉硬化是什么意思
还价是什么意思hcv9jop7ns9r.cn 秋葵有什么营养hcv9jop6ns6r.cn 电泳是什么意思hcv7jop6ns8r.cn 内分泌失调吃什么药效果最好hcv7jop5ns2r.cn 验孕棒一条杠什么意思beikeqingting.com
五谷丰登是什么生肖hcv9jop6ns9r.cn 什么食物补锌hcv8jop5ns2r.cn 脖子上长小肉粒是什么原因xinjiangjialails.com 96166是什么电话hcv7jop7ns3r.cn 男人时间短什么原因hcv8jop2ns7r.cn
逃之夭夭是什么意思hcv8jop3ns6r.cn 梦见头发长长了是什么意思weuuu.com 红斑是什么病hcv9jop2ns8r.cn 月经不调吃什么药好hcv8jop9ns9r.cn 一什么香蕉hcv9jop6ns6r.cn
缺铁性贫血吃什么药最好hcv9jop0ns0r.cn a型熊猫血是什么血型hcv9jop3ns9r.cn 龙骨是什么动物的骨头hcv9jop5ns0r.cn 人分三六九等什么意思hcv8jop4ns0r.cn 狸猫换太子什么意思hcv9jop5ns1r.cn
百度