[Home] [By Thread] [By Date] [Recent Entries]
Hi all, I would like to know distance between two sibling nodes. One solution maybe is to count siblings between the two nodes. So, I have a sequence of sibling node, for example: <a> <b> <c> <a> <b> <c> <c> and when I match element <c> I need to know the number of preceding-sibling only until the first previous element <a>, also it is: <a> <b> <c> = 2 <a> <c> = 1 <c> = 2 where digit is the distance from the first prevoius <a>.
I use XSLT 2.0 with Saxon. Thanks in advance. ~alex
|

Cart



