Subject:xsl recursion question Author:martin king Date:11 Jan 2007 08:31 AM
I'm pretty new to XSL and have a question regarding xsl recursion.....
12 months of the year, each containing a value...
jan 100
feb 125
march 100, etc, etc
I need to workout the yearly figure by adding each montly value..
100 + 125 + 100, etc
It looks like this can be done inside of a tempale using recursion -
<xsl:with-param name="total" select "$total+1">
but does this need to be within a for-each statement?
Has anyone got any examples of how this achieved - i'm playing but not making any progress!!