The eq operator can only be used to compare atomic values.
eq操作符只能用于比较原子值。
It can also create sequences of atomic values, which might be confused with node-sets.
它也可以创建原子值序列,这有可能与结点集混淆。
Value comparisons are about relationships between atomic values, and they do not check an entire set.
值比较用于原子值之间的关系,不检查整个集合。
You can create a sequence that contains the atomic values shown in Listing 1, plus all of the elements, as shown in Listing 2.
您可以创建一个序列,其中包含清单1 所示的原子值,以及 清单2 所示的所有元素。
Just remember: Every eq operator is a potential error and should only be used when you can be fairly sure it is dealing with atomic values.
只需记住:每个eq操作符都可能出现错误,您只有在相当确信处理的是原子值时才能使用它。
XPath 2.0 works on sequences, and sequences can contain nodes (so you're not loosing anything) as well as strings, integers, and other atomic values.
XPath 2.0可以操作序列,而序列可以包含节点(所以不会丢失任何内容)以及字符串、整数和其他原子值。
XPath 2.0 works on sequences, and sequences can contain nodes (so you're not loosing anything) as well as strings, integers, and other atomic values.
XPath 2.0可以操作序列,而序列可以包含节点(所以不会丢失任何内容)以及字符串、整数和其他原子值。
应用推荐