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

Re: Totalliing

Subject: Re: Totalliing
From: Anton Triest <anton@xxxxxxxx>
Date: Thu, 21 Oct 2004 02:15:37 +0200
in browser xslt
Hi Eugene,

Please find three files "stkmis5.xml","Stkmis5.htm" and stkmis.xsl

I want to get a totalled sum for the nodes "Qty" and "Value" when i open the stkmis5.htm

I think you want something like this:

<p>Total Qty: <xsl:value-of select="format-number(sum(/xml/rs:data/z:row/@qty),'#.0000')"/></p>
<p>Total Value: <xsl:value-of select="format-number(sum(/xml/rs:data/z:row/@value),'#.0000')"/></p>


Cheers,
Anton

BTW: that's a neat example of "dynamic in-browser XSLT". Is this showSorted javascript function in the public domain? I wish I could find something like this that would work in Mozilla, too.

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.