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

RE: Question on subtotaling

Subject: RE: Question on subtotaling
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 28 Feb 2001 04:01:38 -0000
xsl 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


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.