xsl-list
[Top] [All Lists]

Re: Counting preceding-siblings with a different parent

2004-12-16 08:49:20
perhaps you want to count your preceding siblings and your preceding
cousings (ie, the children of your parent's preceding-siblings)
count(preceding::*) + count(../preceding::*/*)
>
Yes that was it.
I realized my stupidity of wanting to count sibilings of different parents,
but its still fairly early here and I've only had one cup of coffee.

In the hope to prevent mistakes when you try the above after your coffe, David 
probably meant:

  count(preceding-sibling::*) + count(../preceding-sibling::*/*)

:-)

Cheers and good morning,
Geert

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--