[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] the sum values


Subject: Re: [xsl] the sum values
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 4 Mar 2003 14:51:22 +0000

Hi Dionisio,

> with xslt how can i get, and print (<xsl:value-of....), the sum of
> the totales values (can be 1 or x values, the number i don't know)?
> (7+12+47.....)?

Use the sum() function:

  <xsl:value-of select="sum(/registros/registro/totales)" />

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords