RE: [xsl] Question on subtotaling

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