I need to generate an item that accumulates a total for a given XML input.
The XML input is:
Use the sum() function to total the @amount values:
@amount
Note that you'll want to move your Total: label along with the above xsl:value-of outside of your xsl:for-each loop.
Total:
xsl:value-of
xsl:for-each