Re: [xsl] Totalliing

Subject: Re: [xsl] Totalliing
From: Anton Triest <anton@xxxxxxxx>
Date: Thu, 21 Oct 2004 02:15:37 +0200
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