node-set maps to an org.w3c.dom.NodeList
node-set映射为 org.w3c.dom.NodeList
Using extension functions (other than node-set).
使用扩展函数(节点集除外)。
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将返回一个节点集,其中的节点按照文档顺序要比另一个节点集中的第一个节点早出现。
XPath 1.0 provided you with the sum function as a convenient means to add the numeric values of the nodes in a node-set.
XPath 1.0提供了sum函数,用于将节点集中的数字值相加。
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 将计算两个集合之间的差异,返回一个节点集,该节点集的节点位于其中一个实参,而不在其他实参中。
You might copy the nodes in sorted order into a result tree fragment, but then your stylesheet must rely on the node-set extension function.
也可将排序的节点复制到结果树片断中,但这样就不得不使用node - set扩展函数。
Vendor-provided extension functions should always be reported as available in that vendor's processor (the node-set function for 1.0 is an example).
在厂商提供的处理程序中,厂商定义的扩展函数应该总是可用的(1.0中的node - set函数就是一个例子)。
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.
例如,当实际值或表达式是一个节点集时,一旦找到节点集的一个成员时,就可以立即知道最终的布尔值结果。
Most providers of an XSLT processor added an extension function, usually called node-set , which allows the RTF to become a navigable and filterable tree.
多数XSLT处理程序的提供商都增加了一个扩展函数,通常称为node - set,它可以把RTF变成可导航、可筛选的树。
It can also save time, if it turns out (as it often does) that the only thing done with the node-set is to test whether it is empty, or to get the value of its first element.
它还可以节省时间,如果对于节点集的唯一操作就是测试它是否是空的(通常是这种情况),或者对它的第一个元素进行赋值。
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.
谓词必须作用于节点集,但是可作用于任何节点集。
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子句返回的节点集所执行的筛选或排序操作。
应用推荐