XSLT: add up number and print subtotal multiple times

前端 未结 4 1219
北荒
北荒 2021-01-16 14:29

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

4条回答
  •  借酒劲吻你
    2021-01-16 15:09

    You need a variation on Muenchian grouping. Start by defining a key as:

    
    

    then use:

    ##
    

    to sum the numbers in the current group.

提交回复
热议问题