<?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+T3JhY2xlIEZpbmFuY2lhbCBTZXJ2aWNlcyBTb2Z0d2FyZSBMaW1pdGVkPC9uYW1lPjxkYXRlPjI1LTA1LTIwMjE8L2RhdGU+PG51bWJlcj45OTIzPC9udW1iZXI+PHR5cGU+ZW50ZXJwcmlzZTwvdHlwZT48L2NvbXBhbnk+</data>
<hash>6vOnZgr+qYx1kllEmnDhI0hkBnY=</hash></lic>
<xsl:template match="/">
<xsl:comment> Generated by J4L FO Designer 2.15.*</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 4dfef00d-e27e-4a35-978c-bfcfa290f25d</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="0.53cm" margin-bottom="3.0cm"  /> 
  <fo:region-before region-name="header0" extent="0.53cm"/> 
  <fo:region-after region-name="footer0" extent="3.0cm"/> 
  </fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="master0">

<xsl:comment> START Page sequence Master1 </xsl:comment>
<fo:static-content flow-name="header0">
<xsl:comment> ID Page Header  8c161170-b93e-48c1-98f5-38b0a7d6e007</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="0.53cm">
      <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.53cm"  >
        <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  3eb21ae0-3198-43ac-aad0-2f64dbfc36bc</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  9be7577f-4375-4f2c-a37b-5f72e684f4df</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.72cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="12.0cm"/>
      <fo:table-column column-width="5.0cm"/>
      <fo:table-body>
      <fo:table-row   height="0.72cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID bankNameValue 19bd75ca-af8d-4679-8420-6a1b7dc99f17</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.49cm"  margin-top="0.11cm"   ><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.52cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="12.0cm"/>
      <fo:table-column column-width="5.0cm"/>
      <fo:table-body>
      <fo:table-row   height="0.52cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID branchNamevalue 26bf8661-8d38-4225-97be-d95cb5d1c159</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.47cm"  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.41cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="12.0cm"/>
      <fo:table-column column-width="5.0cm"/>
      <fo:table-body>
      <fo:table-row   height="0.41cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID offerIssueDateValue 8834ba84-ea4b-48c9-9a28-6037f2809596</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.52cm"  margin-top="0.0cm"   ><xsl:value-of select="offerissueDetails/offerIssueDate"  ></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 To </xsl:comment>
 <xsl:if test="applicantDetails/applicantDetailsModel" >
 <xsl:comment> ID To e7d79ec4-7173-410d-ad54-a0d5abb82a8f</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID To Header f0abe920-8242-4272-9f2a-5d0f918d863c</xsl:comment>
   <fo:table-header>
     <fo:table-row   height="0.8cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.48cm"/>
      <fo:table-column column-width="16.52cm"/>
       <fo:table-body>
       <fo:table-row   height="0.8cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID To 3533fa7a-9716-4245-82a2-b08bdb202348</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="14.52cm"  margin-top="0.03cm"   > To,
       </fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
   </fo:table-header>
   <fo:table-body>
   <xsl:for-each select="applicantDetails/applicantDetailsModel">
 <xsl:comment> repetition of To</xsl:comment>
     <fo:table-row   height="0.67cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.48cm"/>
      <fo:table-column column-width="16.52cm"/>
       <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 fullNamevalue 69027d84-3137-4da2-85aa-83853a9f40f0</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.03cm"  margin-top="0.08cm"   > <xsl:value-of select="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.56cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.48cm"/>
      <fo:table-column column-width="16.52cm"/>
       <fo:table-body>
       <fo:table-row   height="0.56cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID addressLine1 6c67971d-affc-4896-a3c7-599464e59b45</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.03cm"  margin-top="0.0cm"   > <xsl:value-of select="address/buildingName"  ></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.48cm"/>
      <fo:table-column column-width="16.52cm"/>
       <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 addressLine2 8311a913-5a8e-4fb3-94e9-2876891598f8</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.05cm"  margin-top="0.0cm"   > <xsl:value-of select="address/streetName"  ></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.64cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.48cm"/>
      <fo:table-column column-width="16.52cm"/>
       <fo:table-body>
       <fo:table-row   height="0.64cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID state 83f1e4f9-f6e7-4735-8947-5c149460b106</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.08cm"  margin-top="0.0cm"   > <xsl:value-of select="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="0.61cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.48cm"/>
      <fo:table-column column-width="16.52cm"/>
       <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 city de1f74e0-f394-4611-9249-72b38bfc173a</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.08cm"  margin-top="0.0cm"   > <xsl:value-of select="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.85cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.48cm"/>
      <fo:table-column column-width="16.52cm"/>
       <fo:table-body>
       <fo:table-row   height="0.85cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID pincode 1f0e7c91-f90e-4544-8d92-2cd75a42b00c</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.08cm"  margin-top="0.0cm"   > <xsl:value-of select="address/pinCode"  ></xsl:value-of>
       </fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
    </xsl:for-each>
   </fo:table-body>
 </fo:table>
 
 </xsl:if>

 <xsl:comment> END Area To </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 Body Area 1 </xsl:comment>
 <xsl:comment> ID Body Area 1 f7795fdf-e19c-4ad4-aa58-9d31e80a99bc</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Body Header 1 319d54a3-06ac-4022-8906-b9a8a654ea93</xsl:comment>
   <fo:table-header>
     <fo:table-row   height="0.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="0.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-header>
   <fo:table-body>
 <xsl:comment> repetition of Body Area 1</xsl:comment>
     <fo:table-row   height="0.69cm">
       <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="0.69cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Re 318149b6-6dbe-4c13-b62a-f950ea8bcab5</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.16cm"   > Re : Approval of Loan
       </fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="0.56cm">
       <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="0.56cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Dear  f64647b3-4c3e-4c66-9c1a-e066a5c2fc22</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="13.56cm"  margin-top="0.0cm"   > Dear Sir/Madam,
       </fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="1.31cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.51cm"/>
      <fo:table-column column-width="16.49cm"/>
       <fo:table-body>
       <fo:table-row   height="1.31cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Memo1 f93baac0-c775-4465-b1e0-aa40e8757f69</xsl:comment>
      <fo:block-container  width="16.24cm" 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="justify">
<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 with application number $2 for $3 has been approved with the following parameters below.&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="loanDetails/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="loanDetails/applicationNumber" />
 </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: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="accountDetails/latestAmount" />
 </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="offerissueDetails/offerIssueDate" />
 </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 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="0.85cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.45cm"/>
      <fo:table-column column-width="16.55cm"/>
       <fo:table-body>
       <fo:table-row   height="0.85cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Memo2 f4f67f69-be66-4b40-aa0c-dde58eb747e4</xsl:comment>
      <fo:block-container  width="15.946666666666667cm" 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;Approved Amount		  :  $3 $1&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="accountDetails/latestAmount" />
 </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="offerissueDetails/offerIssueDate" />
 </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="offerissueDetails/ofrExpiryPeriod" />
 </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="offerissueDetails/ofrExpiryTerm" />
 </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;Approved   Date	            : $2&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="accountDetails/latestAmount" />
 </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="offerissueDetails/offerIssueDate" />
 </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="offerissueDetails/ofrExpiryPeriod" />
 </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="offerissueDetails/ofrExpiryTerm" />
 </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;Offer Valid Period		  : $4      $5&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="accountDetails/latestAmount" />
 </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="offerissueDetails/offerIssueDate" />
 </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="offerissueDetails/ofrExpiryPeriod" />
 </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="offerissueDetails/ofrExpiryTerm" />
 </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 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 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="0.91cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.45cm"/>
      <fo:table-column column-width="16.55cm"/>
       <fo:table-body>
       <fo:table-row   height="0.91cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID memo3 a496e8fc-5ce5-477d-84c6-b48fc30c7491</xsl:comment>
      <fo:block-container  width="15.973333333333333cm" 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="17pt" 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="accountDetails/latestEffectiveRate" />
 </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="chargeDetails/totalCharges" />
 </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="repaymentDetails/repaymentType" />
 </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="offerissueDetails/installmentAmount" />
 </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="17pt" 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="accountDetails/latestEffectiveRate" />
 </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="chargeDetails/totalCharges" />
 </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="repaymentDetails/repaymentType" />
 </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="offerissueDetails/installmentAmount" />
 </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="17pt" 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;Fee Amount				: 		$2&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="accountDetails/latestEffectiveRate" />
 </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="chargeDetails/totalCharges" />
 </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="repaymentDetails/repaymentType" />
 </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="offerissueDetails/installmentAmount" />
 </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="17pt" 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		: 		$3&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="accountDetails/latestEffectiveRate" />
 </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="chargeDetails/totalCharges" />
 </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="repaymentDetails/repaymentType" />
 </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="offerissueDetails/installmentAmount" />
 </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="17pt" 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="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 memo3 27313cc0-096f-4910-9db8-2ab1eb7108a1</xsl:comment>
      <fo:block-container  width="15.92cm" 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;Instalment Amount : $1 $2&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="offerissueDetails/approvedLoanAmountCurrency" />
 </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="offerissueDetails/installmentAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var2"   ></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>
  <fo:table-cell number-columns-spanned="1">
  <fo:block>
  
<xsl:comment> START Area Detail area 8 </xsl:comment>
  <xsl:comment> ID Detail area 8 31496834-8c41-4f41-9612-3cc263818915</xsl:comment>

<xsl:comment> ID APR 246810d1-2cf5-4899-905f-feedfadadf5b</xsl:comment>
<xsl:variable name="CustomerType" select="/data/applicantDetails/customerType" />
<xsl:choose>
<xsl:when test="$CustomerType = 'IND'">  <fo:table  table-layout="fixed"  width="17.0cm"   >
    <fo:table-column column-width="17.0cm"/>
    <xsl:comment> ID Detail header 8 d1584abe-a164-4de4-9a3d-774bc5abc8a3</xsl:comment>
    <fo:table-header>
      <fo:table-row   height="0.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="0.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-header>
    <fo:table-body>
  <xsl:comment> repetition of Detail area 8</xsl:comment>
      <fo:table-row   height="0.35cm">
        <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.35cm"  >
              <fo:table-cell    number-columns-spanned="1">
<fo:block />
          </fo:table-cell>
          <fo:table-cell    number-columns-spanned="1">
        <xsl:comment> ID memo4 82d9ec78-674d-4f9d-b3f7-7f50b950fd57</xsl:comment>
       <fo:block-container  width="15.92cm" margin-left="0.0cm" margin-top="0.05cm"   >        <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;Annual Percentage Rate : $2&quot;" />
  <xsl:with-param name="replace" select="'$1'" />
  <xsl:with-param name="by" select="offerissueDetails/approvedLoanAmountCurrency" />
  </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="interestDetails/annualPercentageRate" />
  </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="accountDetails/amount" />
  </xsl:call-template>
  </xsl:variable>
  <xsl:value-of select="$var3"   ></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" >Finance Charge	: 0</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;Amount Financed :  $1 $3&quot;" />
  <xsl:with-param name="replace" select="'$1'" />
  <xsl:with-param name="by" select="offerissueDetails/approvedLoanAmountCurrency" />
  </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="interestDetails/annualPercentageRate" />
  </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="accountDetails/amount" />
  </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-body>
  </fo:table>
  

<xsl:comment> ID APR 846c0f2f-2d92-465d-b02e-c6854dd33bb9</xsl:comment>
</xsl:when>
</xsl:choose>
  <xsl:comment> END Area Detail area 8 </xsl:comment>
  </fo:block>
  </fo:table-cell>
  </fo:table-row>
    </fo:table-body>
 </fo:table>
 

 <xsl:comment> END Area Body 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 Detail area 11 </xsl:comment>
 <xsl:comment> ID Detail area 11 a1b62cd0-194f-41d5-8b17-942360c247fe</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Detail header 11 d5878cad-d15d-4fb4-8aa3-5cf3029bdbaa</xsl:comment>
   <fo:table-header>
     <fo:table-row   height="0.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="0.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-header>
   <fo:table-body>
 <xsl:comment> repetition of Detail area 11</xsl:comment>
     <fo:table-row   height="0.37cm">
       <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.37cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Collateral Details c154fa42-5ca5-4dcf-b3d3-e2b0801b7d5e</xsl:comment>
      <fo:block-container  width="16.053333333333335cm" margin-left="0.0cm" margin-top="0.11cm"   >       <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" >Collateral Details:</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-body>
 </fo:table>
 

 <xsl:comment> END Area Detail area 11 </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 Collateral Details area </xsl:comment>
 <xsl:if test="collateralservices/collateralApplicantDetailsList/collateralDetailsList" >
 <xsl:comment> ID Collateral Details area 69681acc-5710-4c7d-8781-e0b397b9a7fc</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="4.69cm"/>
   <fo:table-column column-width="6.24cm"/>
   <fo:table-column column-width="6.07cm"/>
   <xsl:comment> ID Collateral Details header 9d09b522-b079-4829-a6a1-5b636397e2a4</xsl:comment>
   <fo:table-header>
     <fo:table-row    height="1.09cm"  >
         <fo:table-cell   padding="1mm"  border-color="#000000" border-style="solid" border-width="thin"  number-columns-spanned="1">
       <xsl:comment> ID Type dd344cf5-07f6-473e-a2c6-3c449558f2cc</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.59cm" margin-right="0.05cm"  margin-top="0.32cm"   > Type
       </fo:block>

         </fo:table-cell>
         <fo:table-cell   padding="1mm"  border-color="#000000" border-style="solid" border-width="thin"  number-columns-spanned="1">
       <xsl:comment> ID Amount 0a9677ef-0d8c-48e6-9138-2cab630f9135</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="1.28cm" margin-right="0.45cm"  margin-top="0.32cm"   > Amount
       </fo:block>

         </fo:table-cell>
         <fo:table-cell   padding="1mm"  border-color="#000000" border-style="solid" border-width="thin"  number-columns-spanned="1">
       <xsl:comment> ID Currency Code ceff0c0e-a7ae-4842-a8c6-79eb32d7a3c4</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.4cm" margin-right="0.84cm"  margin-top="0.32cm"   > Currency
       </fo:block>

         </fo:table-cell>
     </fo:table-row>
   </fo:table-header>
   <fo:table-body>
   <xsl:for-each select="collateralservices/collateralApplicantDetailsList/collateralDetailsList">
 <xsl:comment> repetition of Collateral Details area</xsl:comment>
     <fo:table-row    height="1.04cm"  >
         <fo:table-cell   padding="1mm"  border-color="#000000" border-style="solid" border-width="thin"  number-columns-spanned="1">
       <xsl:comment> ID TypeValue 5098f98a-3404-42c4-bd4f-8fe775d9a1bd</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.64cm" margin-right="0.13cm"  margin-top="0.19cm"   > <xsl:value-of select="collateralType"  ></xsl:value-of>
       </fo:block>

         </fo:table-cell>
         <fo:table-cell   padding="1mm"  border-color="#000000" border-style="solid" border-width="thin"  number-columns-spanned="1">
       <xsl:comment> ID AmountValue 3e27779f-65ea-4fb9-bf72-cdb53aeb4e1c</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="1.31cm" margin-right="0.32cm"  margin-top="0.24cm"   > <xsl:value-of select="amountConsidered"  ></xsl:value-of>
       </fo:block>

         </fo:table-cell>
         <fo:table-cell   padding="1mm"  border-color="#000000" border-style="solid" border-width="thin"  number-columns-spanned="1">
       <xsl:comment> ID CurrencyCodeValue 5e98fbad-dbfc-445c-810a-2eb218d1d2c4</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.37cm" margin-right="0.65cm"  margin-top="0.24cm"   > <xsl:value-of select="collateralAmountCCY"  ></xsl:value-of>
       </fo:block>

         </fo:table-cell>
     </fo:table-row>
    </xsl:for-each>
   </fo:table-body>
 </fo:table>
 
 </xsl:if>

 <xsl:comment> END Area Collateral Details area </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 Body area 2 </xsl:comment>
 <xsl:comment> ID Body area 2 26c0daa2-a7ef-4f70-930a-2c76595d3f22</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Body header 2 96c88924-8fd7-4508-ba60-a94efc562dc1</xsl:comment>
   <fo:table-header>
     <fo:table-row   height="0.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="0.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-header>
   <fo:table-body>
 <xsl:comment> repetition of Body area 2</xsl:comment>
     <fo:table-row   height="0.43cm">
       <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.43cm"  >
           <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.55cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.5cm"/>
      <fo:table-column column-width="16.5cm"/>
       <fo:table-body>
       <fo:table-row   height="1.55cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID New 9bb3d6b5-e267-426b-9a9a-e307462ae67a</xsl:comment>
      <fo:block-container  width="16.346666666666668cm" 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" >Please return this offer letter with your acceptance . If not returned on aforesaid date, this letter will be null and void. Acceptance of this letter will be at Banks sole discretion.</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="1.01cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.5cm"/>
      <fo:table-column column-width="16.5cm"/>
       <fo:table-body>
       <fo:table-row   height="1.01cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID New 151cdcbb-877b-4547-90f0-00d8e37c8d23</xsl:comment>
      <fo:block-container  width="16.266666666666666cm" 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;In case of any clarification please do not hesitate to contact Relationship Manager $1.&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="applicantDetails/createdBy" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var1"   ></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.99cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.5cm"/>
      <fo:table-column column-width="16.5cm"/>
       <fo:table-body>
       <fo:table-row   height="0.99cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID New 1255339e-b1ee-4aef-a8f0-b50ebdb90e9b</xsl:comment>
      <fo:block-container  width="16.346666666666668cm" 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" >Yours faithfully,</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="1.03cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.5cm"/>
      <fo:table-column column-width="16.5cm"/>
       <fo:table-body>
       <fo:table-row   height="1.03cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Copy of New f3505f51-439d-4187-81fb-c7dd62beeb5b</xsl:comment>
      <fo:block-container  width="16.346666666666668cm" 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" >Manager</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;$1&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="loanDetails/branchName" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var1"   ></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-body>
 </fo:table>
 

 <xsl:comment> END Area Body area 2 </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  6f67b096-d281-4527-94f5-5041208d2ee6</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.45cm">
      <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.45cm"  >
        <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="2.59cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.5cm"/>
      <fo:table-column column-width="16.5cm"/>
      <fo:table-body>
      <fo:table-row   height="2.59cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID New 2ce09500-3d2b-4b1c-a6e9-0ac088a1054e</xsl:comment>
     <fo:block-container  width="16.133333333333333cm" 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;We $1,hereby accept this offer  with the above  terms and conditions.&quot;" />
<xsl:with-param name="replace" select="'$1'" />
<xsl:with-param name="by" select="applicantDetails/applicantDetailsModel/fullName" />
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="$var1"   ></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" >Name :</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" >Signature :</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" >Date :</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" >Place :</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-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>