XSL style sheet SUM() and COUNT() functions

Hi ,

 

I have below for-each loop to get field values from table.

 

<xsl:for-each select="s1:BankChequeTable">

<xsl:value-of select='string("I")'/>
 <xsl:value-of select="'&#44;'" />
<xsl:value-of select="$AccountNum"/>
<xsl:value-of select="'&#44;'" />
<xsl:value-of select="$RegistrationNum"/>
<xsl:value-of select="'&#44;'" />
<xsl:value-of select='s1:ChequeNum/text()'/>
<xsl:value-of select="'&#44;'" />
<xsl:value-of select='s1:TransDate/text()'/>
<xsl:value-of select="'&#44;'" />
<xsl:value-of select='s1:AmountCur/text()'/>
<xsl:value-of select="'&#44;'" />
<xsl:value-of select='s1:BankNegInstRecipientName/text()'/>
<xsl:value-of select="'&#44;'" />
<xsl:value-of select="'&#13;&#10;'" />
</xsl:for-each>

 

now I want to get sum of the amountCur and count of checknum fields..

Kindly suggest sum and count functions and where can I write that functions..?

 

Thanks

Haribabu

Related
Recommended