Subject:XSLT totaling numeric values Author:Diarmuid O Connor Date:24 Nov 2008 11:12 AM
As a follow on to this, if each Policy node also contained a <Type> value
How could I caculate a sum based on the Status and Type value, for example if I wanted to calculate the total value for all policies with Status = "B" and Type "New"
I have tried
<xsl:value-of select="sum(//Policy[Status='B' and Type='New']/Value)"/>