open 870027.xml ; for /status/connector/threadInfo/@currentThreadsBusy { echo (.) ; for (ancestor::*|.) { $n = concat(xsh:if(.=../@*,'@',''),name()) ; echo :s :n '/' $n ; if .=self::* echo :n :s '[' 1+count(./preceding-sibling::*[name()=$n]) +']' ; } echo ; }
In reply to Re: XML::XPath - node-to-xpath reverse lookup
by choroba
in thread XML::XPath - node-to-xpath reverse lookup
by georgeh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |