This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: tag/element count


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]