xsl-list
[Top] [All Lists]

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

2004-02-05 03:31:23
count(name[(_at_)ratio=0(_dot_)5])
count(name[(_at_)ratio>0.5])
count(name[(_at_)ratio<0.6])

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


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

I know you can do count(name[(_at_)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[(_at_)ratio]=0(_dot_)5) or even include a range
like count(name[(_at_)ratio]>0.5 and name[(_at_)ratio]<0.6)?

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



<Prev in Thread] Current Thread [Next in Thread>
  • RE: is it possible to do a count() based on attribute value s?, Rowland Shaw <=