[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: count of preceding siblings and their childs
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 2 Feb 2008 18:35:49 -0000
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?

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member