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]
Other format: [Raw text]

Re: Accumulating Sum


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


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