<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:j4lif="http://java4less.com/fop/iform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:j4lext="xalan://com.java4less.xreport.fop.XLSTExtension"  extension-element-prefixes="j4lext j4luserext" xmlns:j4luserext="xalan://com.java4less.xreport.fop.XLSTDummyExtension"  >

<lic xmlns="com.java4less.xreport.fop.lic" >
<data>PGNvbXBhbnk+PG5hbWU+T1JBQ0xFIEZJTkFOQ0lBTCBTRVJWSUNFIFNPRlRXQVJFIExURDwvbmFtZT48ZGF0ZT4zMC0xMC0yMDIwPC9kYXRlPjxudW1iZXI+OTg1NzwvbnVtYmVyPjx0eXBlPmVudGVycHJpc2U8L3R5cGU+PC9jb21wYW55Pg==</data>
<hash>imp2ECmEwah4lwZ4/QxIE9QPmyc=</hash></lic>
<xsl:template match="/">
<xsl:comment> Generated by J4L FO Designer 2.14.*</xsl:comment>
<xsl:comment> Apex Encoding: false</xsl:comment>
<xsl:comment> Target environment: cloud</xsl:comment>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
<fo:layout-master-set>
<xsl:comment> ID Master1 22be412e-1e88-46a4-81ab-32b042b78eca</xsl:comment>
<fo:simple-page-master master-name="master0" page-width="21.0cm" page-height="29.7cm" margin-top="2.0cm"   margin-bottom="2.0cm" margin-left="2.0cm"  margin-right="2.0cm"  > 
  <fo:region-body  region-name="body0" margin-top="3.0cm" margin-bottom="3.0cm"  /> 
  <fo:region-before region-name="header0" extent="3.0cm"/> 
  <fo:region-after region-name="footer0" extent="3.0cm"/> 
  </fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="master0">
<fo:static-content flow-name="header0">
<xsl:comment> ID Page Header  eacf919a-4dae-4b07-8f21-7befb03dc38b</xsl:comment>
<fo:table  table-layout="fixed"  width="17.0cm"   >
  <fo:table-column column-width="17.0cm"/>
  <fo:table-body>
<xsl:comment> repetition of Page Header </xsl:comment>
    <fo:table-row   height="3.0cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="17.0cm"/>
      <fo:table-body>
      <fo:table-row   height="3.0cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>


</fo:static-content>
<fo:static-content flow-name="footer0">
<xsl:comment> ID Page Footer  fd635d66-8db7-40c8-a1b0-f1f8ffd73ae1</xsl:comment>
<fo:table  table-layout="fixed"  width="17.0cm"   >
  <fo:table-column column-width="17.0cm"/>
  <fo:table-body>
<xsl:comment> repetition of Page Footer </xsl:comment>
    <fo:table-row   height="3.0cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="17.0cm"/>
      <fo:table-body>
      <fo:table-row   height="3.0cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>

</fo:static-content>
<fo:flow flow-name="body0"> 

<xsl:comment> START Area Report Header  </xsl:comment>
<xsl:if test="data" >
  <xsl:for-each select="data">
<xsl:comment> repetition of Report Header </xsl:comment>
<xsl:comment> ID Report Header  73610a21-7f16-49d9-8902-c02efcfa46e4</xsl:comment>
<fo:table table-layout="fixed"  width="17.0cm"  >
  <fo:table-column column-width="17.0cm"/>
  <fo:table-body>
    <fo:table-row   height="0.59cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="17.0cm"/>
      <fo:table-body>
      <fo:table-row   height="0.59cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.59cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="12.05cm"/>
      <fo:table-column column-width="4.95cm"/>
      <fo:table-body>
      <fo:table-row   height="0.59cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID bankNameValue 5796c02d-9ced-4ed2-9807-ad01381c3254</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="2.07cm"  margin-top="0.0cm"   ><xsl:value-of select="loanDetails/bankName"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.59cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.45cm"/>
      <fo:table-column column-width="11.57cm"/>
      <fo:table-column column-width="4.97cm"/>
      <fo:table-body>
      <fo:table-row   height="0.59cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID To 8025fc5e-ac44-42b8-9981-28812f78ebb8</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="10.48cm"  margin-top="0.0cm"   >To,
      </fo:block>

        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID branchNameValue 1aefd7e4-4d49-474a-a239-c75738d4a86b</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.36cm"  margin-top="0.0cm"   ><xsl:value-of select="loanDetails/branchName"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.61cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="11.57cm"/>
      <fo:table-column column-width="5.0cm"/>
      <fo:table-body>
      <fo:table-row   height="0.61cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID fullNamevalue 578c8ebe-4c38-49c1-a807-3bdb9c2ceaba</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="8.53cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/fullName"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID date 826f0afa-8cc0-4c47-a152-8b5659abf49d</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.36cm"  margin-top="0.0cm"   ><xsl:value-of select="loanDetails/applicationDate"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.59cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="16.57cm"/>
      <fo:table-body>
      <fo:table-row   height="0.59cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID addressLine1value e8c8b6fa-09da-463c-9448-0b091041bd48</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="13.59cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/addressLine1"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.51cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.4cm"/>
      <fo:table-column column-width="16.6cm"/>
      <fo:table-body>
      <fo:table-row   height="0.51cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID addressLine2value 0b4ce336-53c2-4c39-a149-a4ea94d8aa02</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="13.53cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/addressLine2"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.59cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.4cm"/>
      <fo:table-column column-width="16.6cm"/>
      <fo:table-body>
      <fo:table-row   height="0.59cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID statevalue 3e488e0f-9cc2-4b22-9cb9-54802d00fec9</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="13.59cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/state"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.61cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="16.57cm"/>
      <fo:table-body>
      <fo:table-row   height="0.61cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID cityvalue 5e8f79d1-7902-4fda-be59-b275d24267d3</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="13.37cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/city"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="1.09cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="16.57cm"/>
      <fo:table-body>
      <fo:table-row   height="1.09cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID pincodevalue 4d0361b6-f74b-4f82-91e3-eff1c999f5ca</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="13.19cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/pinCode"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
 <fo:table-row>
 <fo:table-cell number-columns-spanned="1">
 <fo:block>
 
<xsl:comment> START Area Detail area 1 </xsl:comment>
 <xsl:comment> ID Detail area 1 d2d19744-c0ce-41f5-be5e-62b988fb5374</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Detail header 1 6a606381-b097-47c9-8e45-3d50e0d8e848</xsl:comment>
   <fo:table-header>
     <fo:table-row   height="0.29cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="17.0cm"/>
       <fo:table-body>
       <fo:table-row   height="0.29cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="1.09cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.51cm"/>
      <fo:table-column column-width="1.49cm"/>
      <fo:table-column column-width="15.0cm"/>
       <fo:table-body>
       <fo:table-row   height="1.09cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Atten 300b820e-e5ce-47c1-a7bc-791aa364eff0</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.21cm"  margin-top="0.0cm"   > Atten :
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID fullName 46e3327a-24ff-406c-a91e-6e8b035e8bf1</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.0cm"  margin-top="0.03cm"   > <xsl:value-of select="applicantDetails/applicantDetailsModel/fullName"  ></xsl:value-of>
       </fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="0.75cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="2.0cm"/>
      <fo:table-column column-width="1.12cm"/>
      <fo:table-column column-width="13.88cm"/>
       <fo:table-body>
       <fo:table-row   height="0.75cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Re 0402533c-f9ea-4d75-b48c-863a7fd95748</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.0cm"  margin-top="0.0cm"   > Re :
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID memo1 5cd3706a-1cc9-4787-9e8e-ee85c27cdfb3</xsl:comment>
      <fo:block-container  width="13.653333333333334cm" margin-left="0.0cm" margin-top="0.03cm"   >       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-right="0cm" margin-left="0cm"  margin-top="0cm" >  <fo:block-container>
 <fo:block  wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Approval of $1 $2 for $3&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="loanDetails/loanCurrencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="loanDetails/loanAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var3" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var2" />
 <xsl:with-param name="replace" select="'$3'" />
 <xsl:with-param name="by" select="loanDetails/productName" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var3"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 </fo:block-container>
</fo:block>
       </fo:block-container>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="0.96cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.56cm"/>
      <fo:table-column column-width="16.44cm"/>
       <fo:table-body>
       <fo:table-row   height="0.96cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID memo2 33108e84-8976-4bfd-8725-cbe7d1676296</xsl:comment>
      <fo:block-container  width="16.186666666666667cm" margin-left="0.0cm" margin-top="0.0cm"   >       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-right="0cm" margin-left="0cm"  margin-top="0cm" >  <fo:block-container>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Dear Sir/Madam,</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">

 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;We are pleased to inform you that your request dated $1 vide $2  has been approved with the following parameters detailed below.&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="applicantDetails/applicationDate" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="applicationNumber" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var2"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">

 </fo:block>
 </fo:block-container>
</fo:block>
       </fo:block-container>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
   </fo:table-header>
   <fo:table-body>
 <xsl:comment> repetition of Detail area 1</xsl:comment>
     <fo:table-row   height="0.24cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="17.0cm"/>
       <fo:table-body>
       <fo:table-row   height="0.24cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="1.28cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.56cm"/>
      <fo:table-column column-width="16.44cm"/>
       <fo:table-body>
       <fo:table-row   height="1.28cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID memo3 5598c4c9-e7ce-4a63-8771-4c1bd36367e6</xsl:comment>
      <fo:block-container  width="16.08cm" margin-left="0.0cm" margin-top="0.0cm"   >       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-right="0cm" margin-left="0cm"  margin-top="0cm" >  <fo:block-container>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Offer Accepted Date		: $1	  &quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="customerDecisionModel/dateOfOfferAcceptOrReject" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="disbursementDetails/firstDisbursementDate" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var3" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var2" />
 <xsl:with-param name="replace" select="'$3'" />
 <xsl:with-param name="by" select="loanDetails/loanCurrencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var4" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var3" />
 <xsl:with-param name="replace" select="'$4'" />
 <xsl:with-param name="by" select="loanDetails/loanAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var5" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var4" />
 <xsl:with-param name="replace" select="'$5'" />
 <xsl:with-param name="by" select="updatedLoanDetailsModel/tenure" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Disbursement Date	: $2&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="customerDecisionModel/dateOfOfferAcceptOrReject" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="disbursementDetails/firstDisbursementDate" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var3" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var2" />
 <xsl:with-param name="replace" select="'$3'" />
 <xsl:with-param name="by" select="loanDetails/loanCurrencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var4" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var3" />
 <xsl:with-param name="replace" select="'$4'" />
 <xsl:with-param name="by" select="loanDetails/loanAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var5" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var4" />
 <xsl:with-param name="replace" select="'$5'" />
 <xsl:with-param name="by" select="updatedLoanDetailsModel/tenure" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Loan Amount			:  $3 $4&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="customerDecisionModel/dateOfOfferAcceptOrReject" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="disbursementDetails/firstDisbursementDate" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var3" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var2" />
 <xsl:with-param name="replace" select="'$3'" />
 <xsl:with-param name="by" select="loanDetails/loanCurrencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var4" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var3" />
 <xsl:with-param name="replace" select="'$4'" />
 <xsl:with-param name="by" select="loanDetails/loanAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var5" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var4" />
 <xsl:with-param name="replace" select="'$5'" />
 <xsl:with-param name="by" select="updatedLoanDetailsModel/tenure" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Loan Tenor			: $5&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="customerDecisionModel/dateOfOfferAcceptOrReject" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="disbursementDetails/firstDisbursementDate" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var3" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var2" />
 <xsl:with-param name="replace" select="'$3'" />
 <xsl:with-param name="by" select="loanDetails/loanCurrencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var4" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var3" />
 <xsl:with-param name="replace" select="'$4'" />
 <xsl:with-param name="by" select="loanDetails/loanAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var5" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var4" />
 <xsl:with-param name="replace" select="'$5'" />
 <xsl:with-param name="by" select="updatedLoanDetailsModel/tenure" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">

 </fo:block>
 </fo:block-container>
</fo:block>
       </fo:block-container>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="3.48cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.56cm"/>
      <fo:table-column column-width="16.44cm"/>
       <fo:table-body>
       <fo:table-row   height="3.48cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID memo3 31e1605c-f934-4339-9a27-019c1e4769fb</xsl:comment>
      <fo:block-container  width="16.053333333333335cm" margin-left="0.0cm" margin-top="0.0cm"   >       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-right="0cm" margin-left="0cm"  margin-top="0cm" >  <fo:block-container>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Interest Rate 			: $1 %&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="interestDetails/effectiveRate" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="repaymentDetails/repaymentType" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var3" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var2" />
 <xsl:with-param name="replace" select="'$3'" />
 <xsl:with-param name="by" select="offerissueDetails/installmentAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var4" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var3" />
 <xsl:with-param name="replace" select="'$4'" />
 <xsl:with-param name="by" select="loanDetails/loanCurrencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var4"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Repayment Type		: $2&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="interestDetails/effectiveRate" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="repaymentDetails/repaymentType" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var3" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var2" />
 <xsl:with-param name="replace" select="'$3'" />
 <xsl:with-param name="by" select="offerissueDetails/installmentAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var4" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var3" />
 <xsl:with-param name="replace" select="'$4'" />
 <xsl:with-param name="by" select="loanDetails/loanCurrencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var4"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Instalment Amount		: $4 $3&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="interestDetails/effectiveRate" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="repaymentDetails/repaymentType" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var3" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var2" />
 <xsl:with-param name="replace" select="'$3'" />
 <xsl:with-param name="by" select="offerissueDetails/installmentAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var4" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var3" />
 <xsl:with-param name="replace" select="'$4'" />
 <xsl:with-param name="by" select="loanDetails/loanCurrencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var4"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Disbursement Account 		: </fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">

 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">

 </fo:block>
 </fo:block-container>
</fo:block>
       </fo:block-container>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
    </fo:table-body>
 </fo:table>
 

 <xsl:comment> END Area Detail area 1 </xsl:comment>
 </fo:block>
 </fo:table-cell>
 </fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="1">
<fo:block>

<xsl:comment> START Area Report Footer  </xsl:comment>
<xsl:comment> ID Report Footer  b2bdff22-a5fc-4483-8011-e1592911ad72</xsl:comment>
<fo:table  table-layout="fixed"  width="17.0cm"   >
  <fo:table-column column-width="17.0cm"/>
  <fo:table-body>
<xsl:comment> repetition of Report Footer </xsl:comment>
    <fo:table-row   height="0.21cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="17.0cm"/>
      <fo:table-body>
      <fo:table-row   height="0.21cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.67cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.56cm"/>
      <fo:table-column column-width="16.44cm"/>
      <fo:table-body>
      <fo:table-row   height="0.67cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID Yours 04f6edf7-322c-4345-83c6-ee1e0af57cb7</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.96cm"  margin-top="0.0cm"   >Yours faithfully,
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="2.12cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.53cm"/>
      <fo:table-column column-width="16.47cm"/>
      <fo:table-body>
      <fo:table-row   height="2.12cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID yours 00651ece-24e5-4867-a631-9b3d40852a1e</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="12.04cm"  margin-top="0.0cm"   ><xsl:value-of select="loanDetails/bankName"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>


<xsl:comment> END Area Report Footer  </xsl:comment>
</fo:block>
</fo:table-cell>
</fo:table-row>
  </fo:table-body>
</fo:table>
  </xsl:for-each>

</xsl:if>

<xsl:comment> END Area Report Header  </xsl:comment>
<fo:block id="last-page"/></fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template name="string-replace-all">
    <xsl:param name="text" />
    <xsl:param name="replace" />
    <xsl:param name="by" />
    <xsl:choose>
        <xsl:when test="$text = '' or $replace = ''or not($replace)" >
            <!-- Prevent this routine from hanging -->
            <xsl:value-of select="$text" />
        </xsl:when>
        <xsl:when test="contains($text, $replace)">
            <xsl:value-of select="substring-before($text,$replace)" />
            <xsl:value-of select="$by" />
            <xsl:call-template name="string-replace-all">
                <xsl:with-param name="text" select="substring-after($text,$replace)" />
                <xsl:with-param name="replace" select="$replace" />
                <xsl:with-param name="by" select="$by" />
            </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
            <xsl:value-of select="$text" />
        </xsl:otherwise>
    </xsl:choose>
</xsl:template></xsl:stylesheet>