Re: [xsl] Accumulating Sum

Subject: Re: [xsl] Accumulating Sum
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Tue, 02 Apr 2002 22:00:16 +0200
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



Current Thread