node-set maps to an org.w3c.dom.NodeList
node-set映射为 org.w3c.dom.NodeList
Using extension functions (other than node-set).
使用扩展函数(节点集除外)。
Finally, you can pass a combination of a string and a node-set as parameters.
最后,您可以将字符串和节点集的组合作为参数来传递。
It's easy to forget the root, but if you do, the XPath returns an empty node-set.
很容易忘记根元素,如果您确实忘记了,那么XPath会返回空的节点集。
It's also necessary to specify the return type. Here I ask for a node-set back.
还必须指定返回类型。
However, that means you have to rely on the node-set extension function to add the values.
但是这样就只能使用node - set扩展函数把这些值加起来。
Set: intersection computes the intersection if two sets, returning a node-set whose nodes are in both.
如果返回的节点集中的节点在两个集合中都有,则set:intersection将计算交集。
Exsl: node-set allows you to turn result tree fragments into node-sets so that you can apply XPath on them.
node - set允许您将结果树片段转换为节点集,这样便可以对其应用XPath。
Using the node-set extension function to convert a Result Tree Fragment (RTF) to be navigable and filterable.
使用node - set扩展函数使结果树片段(rtf)能够导航和筛选。
The variable $values is neither a node-set nor an IDN; it is just a sequence of atomic double-precision numbers.
变量 $values既不是节点集也不是IDN,仅仅是一个原子性的双精度数序列。
For example if the node-set is used in a Boolean context, the only processing needed is to test whether it is empty.
例如,如果该节点集在布尔型上下文中使用,唯一需要的处理就是测试它是否是空的。
For completeness, document also accepts a node-set as a parameter, in which case the function assumes each node is a URI.
为完整起见,document还接受节点集作为参数,在这种情形下,该函数认为每个节点都是一个URI。
Using an RTF forces you to use the node-set extension function to access the individual values stored in the fragment.
RTF还必须用node - set扩展函数访问存储在片断中的每个值。
set:trailing returns the nodes in one node-set that come after the first node in the other node-set, in document order.
trailing将返回一个节点集,其中的节点按照文档顺序要比另一个节点集中的第一个节点晚出现。
When an intensional node-set is used for the third time, it is stored extensionally, trading memory for processing time.
当第三次使用内包节点集时,将在扩展存储它,以内存换取处理时间。
Set: leading returns the nodes in one node-set that come before the first node in the other node-set, in document order.
leading将返回一个节点集,其中的节点按照文档顺序要比另一个节点集中的第一个节点早出现。
BC mode allows certain automatic type conversions to occur, as well as automatic selection of the first member of a node-set.
BC模式允许进行某些自动类型转换和自动选择节点集的第一个成员。
You might prefer to sort the original node-set, store the sorted nodes in a variable, and select the first ten members of the sorted set.
也许您更愿意对原来的节点集排序,将排序后的节点存储到变量中,然后选择前十个成员。
set:difference computes the difference between two sets, returning a node-set whose nodes are in one of the arguments but not the other.
difference 将计算两个集合之间的差异,返回一个节点集,该节点集的节点位于其中一个实参,而不在其他实参中。
For example, when the actual value or the expression is a node-set, the final Boolean result is known as soon as a single member of the node-set is found.
例如,当实际值或表达式是一个节点集时,一旦找到节点集的一个成员时,就可以立即知道最终的布尔值结果。
They can really help out when you want a particular element, attribute, or node set.
当需要访问特定的元素、属性或节点集时它们很有用。
In this case, a node set is used when a string is intended, usually with results that are hard to debug.
这种情况下,在打算使用字符串时却使用节点集,这通常导致调试非常困难。
The function parses the document and returns a node set.
该函数解析文档,然后返回节点集。
Remember, a predicate applies to the node set to the left of the predicate itself.
要记住,谓词作用于谓词本身左侧的节点集。
A predicate must be applied to a node set, but it can be applied to any node set.
谓词必须作用于节点集,但是可作用于任何节点集。
A predicate is a partial expression that can be applied to an existing node set.
谓词是用于已有节点集的部分表达式。
where: where lets you apply selection criteria to a node set, beyond what XPath offers.
where:where允许向节点集应用选择条件,除了XPath 原有的机制意外。
Finally, and most importantly, this will ignore any filtering or ordering you perform on the node set returned by the for clause.
最后,也是最重要的,该表达式将忽略对for子句返回的节点集所执行的筛选或排序操作。
Set: distinct examines a node set for nodes with the same string value and removes all but one instance of each.
distinct将检验节点集以查找拥有相同字符串值的节点,并且只保留每个节点的一个实例,而将其余都删除。
One of the keys to effectively using XPath is to realize that an XPath always evaluates to a node set.
有效使用XPath的一个关键是要认识到XPath始终计算的是节点集。
应用推荐