Subject: RE: [xsl] How to access calculation done in loop? From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Fri, 2 Feb 2001 09:37:35 -0000 |
There are two ways to tackle this: (a) with a recursive template, as in the example on page 502 of my XSLT Programmers Reference (b) with two passes; the first pass creates a tree containing the value of price*qty as a separate attribute, the second pass uses the sum() function on this tree. Mike Kay > > I am trying to calculate the total price of all the items > purchased. > I want to print the total amount outside the for-each loop by > multiplying price and qty for each item. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to access calculation, Jiri Jirat | Thread | [xsl] using document() to read HTML, Rosa I-Ting Cheng |
RE: [xsl] merging two documents - o, Michael Kay | Date | RE: [xsl] Selecting all the childre, Michael Kay |
Month |