RE: is it possible to do a count() based on attribute
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: 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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format