This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: newbie - problem with sum
- From: Joerg dot Heinicke at gmx dot de
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 18 Jan 2002 12:38:55 +0100 (MET)
- Subject: Re: [xsl] newbie - problem with sum
- References: <4F213CE9D4A5D411B45D00508B6D701E0276D857@sv_nt_gos41>
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:variable name="suspensecr" select="sum(/Report/Suspense[Amount >
0]/Amount)"/>
> I need to sum all the Amounts with a value > 0
> I set up a variable
>
> <xsl:variable name="suspensecr">
> <xsl:for-each select="/Report/Suspense">
> <xsl:if test="Amount > 0"><xsl:value-of
> select="Amount"/></xsl:if>
> </xsl:for-each>
> </xsl:variable>
>
> which seems to contain all the required values but I can't get a sum
> produced from this.
> I've tried all sorts of <xsl:value-of select="sum(.... but to no avail.
> Can someone help please?
> Thanks
> Jan
>
>
>
>
> --------------------------------------------------------------------------
>
> CONFIDENTIALITY
> The information contained in this e-mail and any files transmitted with it
>
> is private and confidential. It is intended for the named addressee only.
> If you are not the intended addressee you are prohibited from
> storing, copying or using the information in any way.
> If you received this e-mail due to a transmission error please notify the
> sender immediately. No liability is accepted by Northern Rock
> for any losses caused by viruses contracted during transit
> over the Internet or present in any receiving system.
> This e-mail is not intended to create legally binding commitments on
> behalf of Northern Rock plc, nor do its contents reflect the corporate
> views or policies of Northern Rock plc.
> --------------------------------------------------------------------------
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list