[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to access calculation done in loop?

Subject: RE: How to access calculation done in loop?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 2 Feb 2001 09:37:35 -0000
access calculation
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.