2 ways.
In pure XSLT 1.0 you could write a recursive template, that takes a set of nodes, parses the first one, and then passes the rest into the template again, returning the first node value, plus whatever is returned by the recursive call.
Or you could parse the nodes once, then feed the resulting nodeset into a variable, which is then summed. To do this you would have to use something like exsl:node-set().
|