Re: [xsl] sum() and param

Subject: Re: [xsl] 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 &lt; 9])

Sorry, I meant
sum(/CATALOG/PLANT[GROWTH/ZONE=4 and SALESINFO/PRICE &lt; 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