Subject: Re: sum() and param
From: Mike Brown <mike@xxxxxxxx>
Date: Sat, 22 Mar 2003 13:11:50 -0700 (MST)
|
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
| Current Thread |
- sum() and param
- Blanche Angelo - Fri, 21 Mar 2003 23:26:14 -0500 (EST)
- Mike Brown - Sat, 22 Mar 2003 02:09:15 -0500 (EST)
- <Possible follow-ups>
- Mike Brown - Sat, 22 Mar 2003 15:08:13 -0500 (EST) <=
|
|