[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: RE: is it possible to do a count() based on attribute values?
From: Rowland Shaw <Rowland.Shaw@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 5 Feb 2004 02:31:23 -0800
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.