count(element/@atrr)
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
> Sorin Marti
> Sent: 25 November 2002 10:23
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: How to count attributes?
>
>
> Hi all,
>
> I'd like to count the number of one attribute. How can I do that?
>
> example:
>
> <element atrr="bla">...</element>
> <element atrr="blu">...</element>
> <element atrr="ble">...</element>
> <element atrr="bli">...</element>
> <element atrr="blo">...</element>
>
> The result should be: 5 (because the attribute attr exists 5 times)
>
> Thanx for help
> mas
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|