Subject: RE: [xsl] Count preceding cousins and siblings From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 12 Mar 2008 21:30:38 -0000 |
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@xxxxxxxxxxxx [mailto:Jim_Albright@xxxxxxxxxxxx] > Sent: 12 March 2008 20:29 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Count preceding cousins a, Wendell Piez | Thread | [xsl] inserting tabs, oryann9 |
Re: [xsl] Count preceding cousins a, Wendell Piez | Date | RE: [xsl] Slow XSLT, Cleyton Jordan |
Month |