I\'m a beginner in XSLT and figured out that I cannot just add up numbers to a variable and change its value in any way.
I have a XML document with a list of numbers
You need a variation on Muenchian grouping. Start by defining a key as:
then use:
##
to sum the numbers in the current group.