您只需要通过获取原始规则(清单2)的XML和使用文本编辑器修改表达式就可以完成这项工作。
You can do this simply by taking the XML of the original rule (Listing 2) and using a text editor to modify the expression.
由查询表达式计算出来的XML“值”,可为零项、一项或者多项,而其中每一项可以是一个元素、一个属性或一个原始值。
An XML "value," computed by a query expression, may consist of zero, one, or many items, each of which may be an element, an attribute, or a primitive value.
EcmaScript组件只提供核心语言功能 --原始数据类型、表达式赋值和流量控制等等。
The EcmaScript component offers only the core language features -- the primitive data types, expression evaluation, flow control, etc.
在一个字符串上调用。r会把它变成一个正则表达式;我们是用了原始(三重引号)字符串来避免诸多双重转义的反斜杠。
Calling.r on a string turns it into a regular expression; we use raw (triple-quoted) strings here to avoid having to double-escape backslashes.
比起一个原始的表达式,以这种形式完成表达式的优点是更加的灵巧。
The advantages of having an expression in this form, rather than just an ordinary expression, are slightly more subtle.
一般而言,XML查询表达式的结果可由异构的元素序列、属性和所有混合类型的原始值构成。
In general, the result of an expression in an XML query may consist of a heterogeneous sequence of elements, attributes, and primitive values, all of mixed type.
一般而言,XML查询表达式的结果可由异构的元素序列、属性和所有混合类型的原始值构成。
In general, the result of an expression in an XML query may consist of a heterogeneous sequence of elements, attributes, and primitive values, all of mixed type.
应用推荐