Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hari 1 post 71 karma points
    Nov 13, 2017 @ 19:16
    Hari
    0

    XSLT SUM and Count Functions

    Hi All,

    I have below XSLT which produce values from two table (Bank Account table(parent) and Bank Check table(Child)).

    Now I need sum value of the amount field and count of the cheque number field out side for each loop.

    Kindly Assist.

          <xsl:variable name="AccountNum" select="s1:AccountNum"/>
          <xsl:variable name="RegistrationNum" 
           select="s1:RegistrationNum"/>
       <xsl:for-each select="s1:BankChequeTable">
    
           <xsl:value-of select='string("I")'/>
          <xsl:value-of select="$AccountNum"/>
    
          <xsl:value-of select="$RegistrationNum"/>
    
          <xsl:value-of select='s1:ChequeNum/text()'/>
    
          <xsl:value-of select='s1:TransDate/text()'/>
    
          <xsl:value-of select='s1:AmountCur/text()'/>     
    
           </xsl:for-each> 
      </xsl:if>
    

Please Sign in or register to post replies

Write your reply to:

Draft