Xpath to get the nearest preceding sibling - howto?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • senglory
    New Member
    • Sep 2008
    • 11

    Xpath to get the nearest preceding sibling - howto?

    I need to write a Xpath for getting the closest sibling to the current node. It should return exactly 1 element. How to write it?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    do it like in the tutorials, add its number. (compareable to an array)

    Comment

    Working...