This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Accumulating Sum
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 02 Apr 2002 22:00:16 +0200
- Subject: Re: [xsl] Accumulating Sum
- References: <sca9bd35.021@deltafunding.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
KUMAR NINGASHETTY wrote:
...
> Comp stat typN Total
> ----- - ----- ---- -----
> ABCInc t 1 5
> BBCInc f 4 5
>
> Problem : I could populate first 3 columns..To populate the
> 4th column 'Total' which is sum frm each row of column 'typeN'
Check whether the sum() function solves your problem.
Try something like
<xsl:variable name="totalN" select="vehicle/count[type='N']"/>
and use the variable.
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list