Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Count preceding cousins and siblings


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
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor