Re: sum() and param
I wrote: > Blanche Angelo wrote: > > http://senna.sjsu.edu/lmain/zing/green.xml > > > > Right now, the sum shown on the page is the sum of the price for ALL plants > > that cost less than $9.00. How do I use sum() to display the sum only for > > the plants displayed in the chart (i.e. all zone 4 plants that cost less > > than $9.00)? I've tried several approaches, but they don't work. > > Something like > > sum(/CATALOG/PLANT[GROWTH/ZONE=4 and SALESINFO/PRICE < 9]) Sorry, I meant sum(/CATALOG/PLANT[GROWTH/ZONE=4 and SALESINFO/PRICE < 9]/SALESINFO/PRICE) Mike -- Mike J. Brown | http://skew.org/~mike/resume/ Denver, CO, USA | http://skew.org/xml/ 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