xsl-list
[Top] [All Lists]

using preceding-sibling to calculate acummulated amount

2004-07-07 08:33:45
Hi all...

I need to show in HTML a column of a table that shows the acummulated 
quantity... If, for example, I have:

<row>
  <total>1</total>
</row>
<row>
  <total>2</total>
</row>
<row>
  <total>3</total>
</row>
<row>
  <total>4</total>
</row>

I want to show in HTML:

1
3
6
10

I tried:
total + preceding-sibling::total

but it didn't work.

Thanks
Jaime


<Prev in Thread] Current Thread [Next in Thread>