This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: tag/element count
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] tag/element count
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 12 Jul 2001 12:45:18 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I would like to know how many times tag/element exists in my xml
> document
>
> eg.
>
> <TEMP>
> test
> </TEMP>
> <TEMP>
> test1
> </TEMP>
>
> this would be a count of 2....
count(//*) for all elements
count(//TEMP) for TEMP elements
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list