[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to access calculation done in loop?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|