Question about XPath with functions in it

前端 未结 6 575
-上瘾入骨i
-上瘾入骨i 2021-01-03 11:37

this is a follow-up question of my previous thread:

Please help me on understanding this XPath

I have an XPath as:



        
6条回答
  •  [愿得一人]
    2021-01-03 12:10

    Your code will result in a number, which will equal:

    The position in the Current node list, minus the number of any preceding siblings, minus 18.

    Generally speaking, different operators can be combined into expressions as you demonstrate in your example.

    A note: Use position() with caution, because sometimes the current node list is not easy to see.

提交回复
热议问题