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

Performing an expression on attributes of a node-set

Subject: Performing an expression on attributes of a node-set
From: "Jim Sproull" <jim@xxxxxxxxxxx>
Date: Wed, 27 Sep 2000 09:48:20 -0400
jim sproull
Hi all,

  My subject might be a bit confusing, but my problem isn't;  I am making a
simple shopping cart, and need a way to display the total price of all the
Items.  A simple task, I thought, until I tried doing it.

Getting the total number of items was easy:

sum(//Item/@qty)

And getting the total price of each item was easy:

format-number(sum(//Item/@price), '####0.00')

 But I need the sum of each (price*qty).  I tried everything I could think
of, but no luck.  Any clues on how to do this?

Thanks.
Jim Sproull
jim@xxxxxxxxxxx


 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.