Subject: RE: [xsl] How to sum() with multiplaction From: Jarno.Elovirta@xxxxxxxxx Date: Wed, 11 Dec 2002 09:18:14 +0200 |
Hi, > <node> > <subnode1>test</subnode1> > <subnode2>test</subnode2> > <Node2> > <test1>2</test1> > <test2>25</test1> > </Node2> > <Node2> > <test1>3</test1> > <test2>50</test1> > </Node2> > > I want to get the sum of (in the test case) > 2*25 and 3*50 > So i want to get a result of 200 > How do i do this? A recursive template that goes throught Node2 elements, summing the results of multiplying the child element values. Dimitre propably has some neat mapping template for this. Cheers, Jarno XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to sum() with multipl, Joshua J Sm | Thread | Re: [xsl] How to sum() with multipl, Dimitre Novatchev |
[xsl] How to sum() with multiplacti, Joshua J Sm | Date | [xsl] xslfo: to keep table-row in s, Satish Kumar.R- CTD, |
Month |