count(preceding-sibling::*) + count(../preceding-sibling::*/*)
(change "*" to "node()" if you want all nodes, rather than just element
nodes)
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Jim_Albright(_at_)wycliffe(_dot_)org
[mailto:Jim_Albright(_at_)wycliffe(_dot_)org]
Sent: 12 March 2008 20:29
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Count preceding cousins and siblings
I need to be able to count the preceding cousins and siblings.
Thanks to Wendell for a quick correct solution to the adding
hierarchy problem. I spent three days on it without success.
Jim Albright
704 843-0582
JAARS, Speeding Bible Translation
Wycliffe, Partners in Bible Translation
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--