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

Subject: Re: Count all instances of a named element in a tree
From: Lars Huttar <lars_huttar@xxxxxxx>
Date: Fri, 29 May 2009 11:00:44 -0500
How about
  select="count(/path-to-fragment//countmein)"

or am I missing something?



On 5/29/2009 10:48 AM, W Charlton wrote:
> Does anyone know an elegant solution to counting all elements in an XML
> fragment where the elements to be counted are nested in a tree? An example
> of the XML is below:

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