This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Question on subtotaling
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Question on subtotaling
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 28 Feb 2001 04:01:38 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
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