This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

making calculations in XSL


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]