RE: [xsl] is it possible to do a count() based on attribute value s?

Subject: RE: [xsl] is it possible to do a count() based on attribute value s?
From: Rowland Shaw <Rowland.Shaw@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 5 Feb 2004 02:31:23 -0800
count(name[@ratio=0.5])
count(name[@ratio>0.5])
count(name[@ratio<0.6])

Probably, also:
count(name[(@ratio>0.5) and (@ratio<0.6)])


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Donal Regan
Sent: 05 February 2004 10:14
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] is it possible to do a count() based on attribute values?

I know you can do count(name[@ratio]) and that will
give you the number of name elements which have a
ratio attribute, but is it possible to do something
like count(name[@ratio]=0.5) or even include a range
like count(name[@ratio]>0.5 and name[@ratio]<0.6)?

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread