报告 0 在谓词索引中或者与函数 position() 的 比较中的用法。 此类用法几乎在所有情况下都是 bug,因为在 XPath 中,索引从 1不是 0 开始。

示例:


  //someelement[position() = 0] or //something[0]