xsl-list
[Top] [All Lists]

Re: [xsl] Count all instances of a named element in a tree

2009-05-29 11:59:21
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:


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