标记将收集与查询表达式匹配的所有节点。
The tag will collect all nodes that match the query expression.
更聪明的方法是编写更具体的表达式,显式指定查找节点的位置。
It is wise to write more specific expressions that explicitly specify where to look for nodes.
此外,星号可以用于作为通配符来匹配多个节点,括号内的表达式可以用于匹配属性值和规定索引。
In addition, asterisks can be used as wildcards to match multiple nodes, and bracketed expressions can be used to match attribute values and specify indices.
可以很容易地将模板的动态内容部分替换为使用查询表达式指定正确模型节点的相应 、或标记。
The dynamic content sections of the template are easily replaced by the appropriate , or tags that use query expressions to target the correct model nodes.
如果忘记编写当前节点的相对表达式,那么最后就会得到如清单7所示的错误样式表。
If you forgot to write expressions relative to the current node, you can easily end up with the wrong stylesheet, as in Listing 7.
如前面所述,表达式节点还支持简单的算术和逻辑表达式。
As mentioned, expression nodes also support simple arithmetic and logical expressions.
我们说查询表达式产生一组节点,在这里导航结束。
We say that the query expression results in the set of nodes at which the navigation ends.
表达式中的问号(?)将由目标节点的现有文本值替换。
The question marks (?) in the expression are replaced with the existing text value of the target node.
最常见的操作之一是处理表达式返回的节点集。
One of the more common operations is to work with a set of nodes returned from an expression.
谓词是用于已有节点集的部分表达式。
A predicate is a partial expression that can be applied to an existing node set.
这(在表达式表示节点集的情况下)允许递增检索节点,而不是立即检索所有节点。
This (in the case of expressions representing node sets) allows the nodes to be retrieved incrementally, rather than all at once.
在上面列出的操作中,element1也可以是运算结果为一系列节点的表达式。
In the options listed above, element1 could also be an expression that evaluates to a sequence of nodes.
表达式节点支持包含算术和布尔(真或假逻辑)运算符的简单表达式。
Expression nodes support simple expressions involving arithmetic and Boolean (true or false logic) operators.
在大多数情况下,可以将可用节点集分为三类:表达式、代码片段和控制结构。
For the most part, you can divide the available set of nodes into three types: expressions, snippets, and control structures.
是强制性的一种变形,这个检查更复杂一些,它基于节点XPath表达式的返回值额外执行一次环境检查。
A variant of enforce, this check is more complex, as an additional context check is made based on the node returned from the XPath expression test.
查询表达式通过构建节点集合序列来处理
The query expression is processed by building a sequence of node collections
使用XPath表达式,可以选择合适的节点。
Using an XPath expression, you can select the appropriate nodes.
rename表达式用来对节点进行重命名。
XPath提供从HTML文档树定位和检索单个节点或节点集所需的表达式语言。
XPath provides the expression language necessary to locate and retrieve individual nodes or node collections from the HTML document tree.
消息映射的键是字符串,表示用于访问业务对象的叶子节点的XPath表达式。
The keys of the message map are strings that represent XPath expressions to access the leaf nodes of the business object.
定界符“[|”和“|]”指定对上下文节点进行计算的XPath表达式。
The delimiters, "[|" and "|]", specify the XPath expression that is evaluated with respect to the context nodes.
这个函数类似于顶级XPath判断,它从XSLT接收当前节点,并执行表达式判断,如清单6所示。
This function, similar to the top-level XPath evaluation, passes in the current node from the XSLT and evaluates the expression against that, as in Listing 6.
一个上下文项,它是一个XPath表达式,指向作为列表达式的起点的节点(即accountingcustomerparty)。
A context item, which is an XPath expression used to point to a node that will be the starting point for the column expressions, namely AccountingCustomerParty.
replace表达式用来更新特定节点的特定值。
The replace expression is used to update a particular value of a particular node.
如果表达式为true,节点就添加到结果中。
If the expression is true, the node is added to the results.
这两个XPath表达式由树节点引用的com . icl . saxon . expr . Expression对象表示。
The two XPath expressions are represented by com.icl.saxon.expr.Expression objects referenced from the nodes of the tree.
同时,节点属性指定可以产生任何数量(包括零)节点的查询表达式。
Meanwhile, the nodes attribute specifies a query expression that can result in any number (including zero) of nodes.
每种标记都有一个节点属性,该属性携带一个描述DOM中单一模型节点的查询表达式。
Each tag has a node attribute that takes a query expression describing a single model node in the DOM.
如果查询表达式中没有任何步骤,则查询表达式将产生开始节点,挂起任何附加的筛选。
If there are no steps in the query expression, the query expression results in the start node, pending any additional filtering.
在DOM中的任何其他节点开始,使用一个变量名开始查询表达式,在解释查询表达式时,变量名将与该节点关联。
To start at any other node in the DOM, start the query expression with a variable name that will be associated with that node when the query expression is interpreted.
应用推荐