making calculations in XSL

Subject: making calculations in XSL
From: ".::romina::tulisi::." <romina@xxxxxxxxxxxx>
Date: Wed, 24 May 2000 17:42:43 -0300
Hello.

I'm sorry if u think of my question to be a incredibly newbie-like.

The thing is that I was told that it is possible to make sums in XSL (i.e.
adding the value of an element to another value of an element)

Suppose I have the following xml

<?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>. I've been trying to get it to work but I can't. I've been
using the sum() thing, but as i said before it's not adding.

Can somebody help me please?

thanx in advance.
.romina.


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


Current Thread