This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> Parinit Girde
> Sent: 28 February 2001 00:00
> To: XSL-List@lists.mulberrytech.com
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]