|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Question on subtotaling
I am guessing but it looks as if you want the total for previous nodes in the same category and subcategory. Something like sum(preceding-sibling::item[category=current()/category and subcat=current()/subcat]/value) + current.value(). Mike Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of > Parinit Girde > Sent: 28 February 2001 00:00 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: Question on subtotaling > > > I am new to XSL. I am mailing you if you could help with with > how to do a > XSL which would caluctate aggreagate > > if we have > > category subcategory value > aggregate > X A 2.00 2.00 > X A 5.00 7.00 > X B 3.40 3.40 > Y A 3.30 3.30 > Y A 2.00 5.30 > > I have the category, subcategory, value. I would be grateful > if you can help > me finiding the aggregate with XSL. > > Thank you very much in advance > > Regards, > PArinit > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > 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
|

Cart








