有效使用XPath的一个关键是要认识到XPath始终计算的是节点集。
One of the keys to effectively using XPath is to realize that an XPath always evaluates to a node set.
也许您更愿意对原来的节点集排序,将排序后的节点存储到变量中,然后选择前十个成员。
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.
与以前一样,可以使用xsl: copy - of将整个idn树复制到输出,但是也可在路径表达式中使用该变量而不需要转换成节点集。
You can use XSL: copy-of to copy the whole IDN tree to the output, as before, but you can also use the variable in a path expression without a node-set conversion.
应用推荐