xsl-list
[Top] [All Lists]

RE: [xsl] count of preceding siblings and their childs

2008-02-02 11:36:15
count(preceding-sibling::*/descendant-or-self::*)

That's assuming you only want to count elements.

Michael Kay
http://www.saxonica.com/ 

How do I count the number of all the preceding siblings and 
their descendants?


--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>