[英]How does XPath “evaluate” method work?
I want to understand a difference between execution of evaluation when-我想了解执行评估之间的区别 -
(This question could be linked to an issue mentioned in this question.) (这个问题可能与这个问题中提到的问题有关。)
XPath is not defined except on namespace-aware source documents. XPath 未定义,除了命名空间感知源文档。 So the simple answer is, anything might happen depending on the implementation.
所以简单的答案是,任何事情都可能发生,具体取决于实现。
By constrast, XPath should work regardless of the setting of isValidating, and in nearly all cases should produce the same results.相比之下,无论 isValidating 的设置如何,XPath 都应该工作,并且几乎在所有情况下都应该产生相同的结果。 An exception might be the use of the id() function, which depends on ID attributes being recognised.
一个例外可能是使用 id() function,这取决于识别的 ID 属性。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.