This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: making calculations in XSL
- To: <XSL-List at mulberrytech dot com>
- Subject: RE: making calculations in XSL
- From: ".::romina::tulisi::." <romina at spcom dot com dot ar>
- Date: Fri, 26 May 2000 14:57:26 -0300
- Reply-To: xsl-list at mulberrytech dot com
> <?xml version="1.0">
> <startmeup>
> <number>1</number>
> <number>2</number>
> <number>...</number>
> .
> .
> .
> </startmeup>
>
> What I need is to sum the numbers: 1 + 2 + all the following
> values of the
> <number></number>.
>
><xsl:template match="startmeup">
> Total is: <xsl:value-of select="sum(number)"/>
></xsl:template>
Hello Again.
You see, I've tried that out and it keeps giving me 0 as a result. I have no
idea why... any thoughts? :(
.romina.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list