I want to sum the number column in a table,, I can't able to understand how can I do that in XSL FO? Can anyone explain me in an easy manner
Here is my XML input code:
<Studies>
<Study>
<name>name1</name>
<amount>500</amount>
<age>5</age>
</Study>
<Study>
<name>name1</name>
<amount>500</amount>
<age>15</age>
</Study>
<Study>
<name>name1</name>
<amount>500</amount>
<age>20</age>
</Study>
</studies>
I want the output as, Total:1500(ie., sum the amount) see also this related question: How can I sum up some values per page in a table in XSL-FO?