<?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 31280ed6-eb1c-482f-9eb6-3f2a2d3c2e87</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="1.44cm" margin-bottom="1.65cm"  /> 
  <fo:region-before region-name="header0" extent="1.44cm"/> 
  <fo:region-after region-name="footer0" extent="1.65cm"/> 
  </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  d05d597b-7e42-40aa-a87c-f6a7055aaa64</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-row   height="0.91cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="5.28cm"/>
      <fo:table-column column-width="11.72cm"/>
      <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 Offer Letter with Repayment Schedule ce73878f-8182-4c9c-bf84-5a6428d67588</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="5.11cm"  margin-top="0.0cm"   >Offer Letter with Repayment Schedule
      </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  f83fe01c-7551-4f2d-b1c3-3bff1b3ac8bb</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="1.65cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="17.0cm"/>
      <fo:table-body>
      <fo:table-row   height="1.65cm"  >
        <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  29cf9487-b8b3-4bf5-82b7-a5e8207dc377</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.67cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="11.89cm"/>
      <fo:table-column column-width="5.11cm"/>
      <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 bankNameValue 46feb4bd-65ee-4e26-8528-e7be570015cc</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="2.2cm"  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.51cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="11.87cm"/>
      <fo:table-column column-width="5.13cm"/>
      <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 branchNameValue a583e6f3-51d5-45d6-926b-fa8a1e7ad73a</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.25cm"  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="11.87cm"/>
      <fo:table-column column-width="5.13cm"/>
      <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 date 82415963-3ed9-4200-91ac-f57134825f1f</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.71cm"  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 810c5d9b-a54b-4cde-881c-27143c51fc0a</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID To header 4cabc153-edf3-45dd-bba1-20106add2be5</xsl:comment>
   <fo:table-header>
     <fo:table-row   height="0.69cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.01cm"/>
      <fo:table-column column-width="15.99cm"/>
       <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 To cae23e6d-f7f4-41c2-81e3-29c9b1ad83cc</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="13.99cm"  margin-top="0.0cm"   > 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.48cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.99cm"/>
      <fo:table-column column-width="16.01cm"/>
       <fo:table-body>
       <fo:table-row   height="0.48cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID fullNameValue 93e748fb-08c5-4fc3-890d-d6b8670b04b1</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.16cm"  margin-top="0.0cm"   > <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.51cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.99cm"/>
      <fo:table-column column-width="16.01cm"/>
       <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 addressLine1 0798fa14-0735-45d5-8480-77d444383800</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.16cm"  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.53cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.99cm"/>
      <fo:table-column column-width="16.01cm"/>
       <fo:table-body>
       <fo:table-row   height="0.53cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID addressLine2 da5f9a1e-1ef1-4e43-a2de-510bb18b3896</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.11cm"  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.53cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.99cm"/>
      <fo:table-column column-width="16.01cm"/>
       <fo:table-body>
       <fo:table-row   height="0.53cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID cityValue 3dea6607-8fb6-46af-a528-cb8b637925ac</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.19cm"  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.53cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.99cm"/>
      <fo:table-column column-width="16.01cm"/>
       <fo:table-body>
       <fo:table-row   height="0.53cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID stateValue 60f6101e-3333-4819-9a88-a7003aa98db1</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.72cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.99cm"/>
      <fo:table-column column-width="16.01cm"/>
       <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 pinCodevalue d200b499-088b-4b65-91f6-df7d89915192</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.16cm"  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 6bf5b836-582e-42f1-a28e-07c2c51c1880</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Body header 1 d37dc9e9-e7c0-4ffa-b01c-cffa28d136fe</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.32cm">
       <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.32cm"  >
           <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.88cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.01cm"/>
      <fo:table-column column-width="15.99cm"/>
       <fo:table-body>
       <fo:table-row   height="0.88cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID preApproval 15e4582a-495a-4847-b350-889b640a25af</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="8.09cm"  margin-top="0.0cm"   > 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.96cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.01cm"/>
      <fo:table-column column-width="15.99cm"/>
       <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 Dear 4de24512-f463-4b3e-b90a-12a539115d1e</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="8.01cm"  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="2.08cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.04cm"/>
      <fo:table-column column-width="15.96cm"/>
       <fo:table-body>
       <fo:table-row   height="2.08cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID memo1 58dc63cb-f790-4176-a3e3-ab24541f87a8</xsl:comment>
      <fo:block-container  width="15.813333333333333cm" 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 detailed 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: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.88cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.01cm"/>
      <fo:table-column column-width="15.99cm"/>
       <fo:table-body>
       <fo:table-row   height="0.88cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID memo2 990ac848-0ba7-4d6f-a365-9b266bf76669</xsl:comment>
      <fo:block-container  width="15.76cm" 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		        :  $1  $2&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="updatedLoanDetailsModel/currency" />
 </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="accountDetails/latestAmount" />
 </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/offerIssueDate" />
 </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="/data/updatedLoanDetailsModel/tenure" />
 </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;Approved   Date	                  :  $3&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="updatedLoanDetailsModel/currency" />
 </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="accountDetails/latestAmount" />
 </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/offerIssueDate" />
 </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="/data/updatedLoanDetailsModel/tenure" />
 </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;Loan Tenor			             :  $4&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="updatedLoanDetailsModel/currency" />
 </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="accountDetails/latestAmount" />
 </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/offerIssueDate" />
 </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="/data/updatedLoanDetailsModel/tenure" />
 </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: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.67cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.01cm"/>
      <fo:table-column column-width="15.99cm"/>
       <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 memo3 13aed509-c2cc-4038-a6c6-a59383000d7a</xsl:comment>
      <fo:block-container  width="15.68cm" 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 Valid Period		:  $1 $2&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="offerissueDetails/ofrExpiryPeriod" />
 </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/ofrExpiryTerm" />
 </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="interestDetails/effectiveRate" />
 </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="chargeDetails/totalCharges" />
 </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="repaymentDetails/repaymentType" />
 </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;Interest Rate 			    :  $3% &quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="offerissueDetails/ofrExpiryPeriod" />
 </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/ofrExpiryTerm" />
 </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="interestDetails/effectiveRate" />
 </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="chargeDetails/totalCharges" />
 </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="repaymentDetails/repaymentType" />
 </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;Fee Amount			        :  $4&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="offerissueDetails/ofrExpiryPeriod" />
 </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/ofrExpiryTerm" />
 </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="interestDetails/effectiveRate" />
 </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="chargeDetails/totalCharges" />
 </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="repaymentDetails/repaymentType" />
 </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;Repayment Type		    :  $5&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="offerissueDetails/ofrExpiryPeriod" />
 </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/ofrExpiryTerm" />
 </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="interestDetails/effectiveRate" />
 </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="chargeDetails/totalCharges" />
 </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="repaymentDetails/repaymentType" />
 </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="0.64cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.01cm"/>
      <fo:table-column column-width="15.99cm"/>
       <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 memo4 0457ea28-7f41-4dd2-9f79-d9658c0c795e</xsl:comment>
      <fo:block-container  width="15.653333333333334cm" 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 12 </xsl:comment>
  <xsl:comment> ID Detail area 12 321b3768-20ac-4e6e-bd03-37740c05e12c</xsl:comment>

<xsl:comment> ID APR 5a0e9670-34bb-400d-8442-c6be220cedd0</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 12 4f34c5fb-a0ea-4396-bebc-c9039acf86c8</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 12</xsl:comment>
      <fo:table-row   height="0.4cm">
        <fo:table-cell>
        <fo:table  table-layout="fixed" width="100%">
        <fo:table-column column-width="1.01cm"/>
      <fo:table-column column-width="15.99cm"/>
        <fo:table-body>
        <fo:table-row   height="0.4cm"  >
              <fo:table-cell    number-columns-spanned="1">
<fo:block />
          </fo:table-cell>
          <fo:table-cell    number-columns-spanned="1">
        <xsl:comment> ID memo4 1a562ea5-d80c-4a48-accf-c51804f88da8</xsl:comment>
       <fo:block-container  width="15.68cm" margin-left="0.0cm" margin-top="0.08cm"   >        <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 36a4cf1a-e8d4-4615-b010-5522822e4939</xsl:comment>
</xsl:when>
</xsl:choose>
  <xsl:comment> END Area Detail area 12 </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 10 </xsl:comment>
 <xsl:comment> ID Detail area 10 bfa91266-c640-47d2-ab10-b89ab54da55d</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Detail header 10 b09dc222-3597-4fa6-a969-2393bc6f30f3</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 10</xsl:comment>
     <fo:table-row   height="0.35cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.01cm"/>
      <fo:table-column column-width="15.99cm"/>
       <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 Collateral Details 94de65a8-69f4-4044-bbf8-ccd6dac969ec</xsl:comment>
      <fo:block-container  width="15.68cm" margin-left="0.0cm" margin-top="0.08cm"   >       <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 10 </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 58549c6f-de51-433a-86e7-6964063b6d31</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="5.12cm"/>
   <fo:table-column column-width="5.84cm"/>
   <fo:table-column column-width="6.04cm"/>
   <xsl:comment> ID Collateral Details header 1235a6b2-52bc-4a26-9dde-cc3ebda7eea1</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 4d269370-0cca-4a93-a755-8cf2338aed76</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="1.01cm" margin-right="1.41cm"  margin-top="0.27cm"   > 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 0e706149-f5d6-4eea-aede-b5da214c1c08</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="1.2cm" margin-right="2.64cm"  margin-top="0.29cm"   > 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 CurrencyCode f6ec0f39-bfdb-451e-8b41-2516f57331e8</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.93cm" margin-right="1.35cm"  margin-top="0.35cm"   > 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.49cm"  >
         <fo:table-cell   padding="1mm"  border-color="#000000" border-style="solid" border-width="thin"  number-columns-spanned="1">
       <xsl:comment> ID TypeV 11467095-47c6-4c81-b772-f737e78401b6</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="1.01cm" margin-right="0.69cm"  margin-top="0.35cm"   > <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 d5d5fa9b-db4c-48ec-8165-90df91400826</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="1.23cm" margin-right="1.36cm"  margin-top="0.32cm"   > <xsl:value-of select="collateralAmount"  ></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 CurrencyCodeV bcb6b010-856c-4310-b71d-2fe7b113a4d6</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.99cm" margin-right="0.63cm"  margin-top="0.32cm"   > <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 f090ffcb-aa55-4a28-b8a6-d674d2ce650a</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Body header 2 2460fed7-f377-49a8-bb9d-e8178f9ea2f4</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.48cm">
       <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.48cm"  >
           <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.52cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.0cm"/>
      <fo:table-column column-width="16.0cm"/>
       <fo:table-body>
       <fo:table-row   height="1.52cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID New 21e1ac50-3907-488f-b943-848ce43921ec</xsl:comment>
      <fo:block-container  width="15.786666666666667cm" 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 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.99cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.0cm"/>
      <fo:table-column column-width="16.0cm"/>
       <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 Copy of New 84fbc30d-4e62-4f71-b5de-531544e5925b</xsl:comment>
      <fo:block-container  width="15.84cm" 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" >In case of any clarification please do not hesitate to contact Relationship Manager.</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.96cm"/>
      <fo:table-column column-width="16.04cm"/>
       <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 Copy of memo5 2d3fd349-8f0d-450a-8956-42a6f36e2f6b</xsl:comment>
      <fo:block-container  width="15.786666666666667cm" 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.95cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.0cm"/>
      <fo:table-column column-width="16.0cm"/>
       <fo:table-body>
       <fo:table-row   height="1.95cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Copy of Copy of memo5 bdb1c6e3-c501-44d4-8754-5a31df3a7122</xsl:comment>
      <fo:block-container  width="15.786666666666667cm" 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-row   height="1.44cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.0cm"/>
      <fo:table-column column-width="16.0cm"/>
       <fo:table-body>
       <fo:table-row   height="1.44cm"  >
           <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 0cfbd0ea-1dca-4174-9bf4-744259ef5538</xsl:comment>
      <fo:block-container  width="15.786666666666667cm" 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  wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Repayment schedule 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 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 Repayment Schedule area </xsl:comment>
 <xsl:if test="repaymentSchedule/repaymentScheduleModel" >
 <xsl:comment> ID Repayment Schedule area 1a404349-2c0c-437e-96ab-5084da7b2b6d</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="3.47cm"/>
   <fo:table-column column-width="4.16cm"/>
   <fo:table-column column-width="4.11cm"/>
   <fo:table-column column-width="5.27cm"/>
   <xsl:comment> ID Repayment Schedule header e5614fd0-170f-4966-bb73-8a7c0e5ebc60</xsl:comment>
   <fo:table-header>
     <fo:table-row    height="1.2cm"  >
         <fo:table-cell   padding="1mm"  border-color="#000000" border-style="solid" border-width="thin"  number-columns-spanned="1">
       <xsl:comment> ID dueDate 8cce79ad-7a28-4d8c-b827-852c7b0037d9</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="1.12cm" margin-right="0.35cm"  margin-top="0.37cm"   > Due Date
       </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 installmentAmount 46d422f0-8330-4fe6-9e4c-c25f18a5033f</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.24cm" margin-right="0.45cm"  margin-top="0.43cm"   > Installment 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 InterestAmount 282ecff1-4209-4b4b-933b-e471253f1b97</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.32cm" margin-right="1.01cm"  margin-top="0.43cm"   > Interest 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 PrincipalAmount a0d9bfdb-f2b5-4582-9fb2-a6ebf673ac9f</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.59cm" margin-right="0.97cm"  margin-top="0.43cm"   > Principal Amount
       </fo:block>

         </fo:table-cell>
     </fo:table-row>
   </fo:table-header>
   <fo:table-body>
   <xsl:for-each select="repaymentSchedule/repaymentScheduleModel">
 <xsl:comment> repetition of Repayment Schedule area</xsl:comment>
     <fo:table-row    height="1.25cm"  >
         <fo:table-cell   padding="1mm"  border-color="#000000" border-style="solid" border-width="thin"  number-columns-spanned="1">
       <xsl:comment> ID dueDate 64db0251-3a83-47df-be60-82bcf4df74d4</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.96cm" margin-right="0.51cm"  margin-top="0.32cm"   > <xsl:value-of select="dueDate"  ></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 installedAmount 4ffb3d9d-82ef-4758-b41e-558939732a17</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.4cm" margin-right="0.48cm"  margin-top="0.32cm"   > <xsl:value-of select="emiAmount"  ></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 interestAmount dcbba5c5-9de8-4553-ad9c-1b1ed73db96a</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.4cm" margin-right="0.96cm"  margin-top="0.32cm"   > <xsl:value-of select="interestAmount"  ></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 principalAmt 05e12945-e766-4ea5-a427-4bdd00db30e6</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.61cm" margin-right="0.68cm"  margin-top="0.32cm"   > <xsl:value-of select="principleAmount"  ></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 Repayment Schedule 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 Report Footer  </xsl:comment>
<xsl:comment> ID Report Footer  ad9ce8c5-4155-4b51-b9c3-a9b074b43b0b</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.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="5.12cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="1.0cm"/>
      <fo:table-column column-width="16.0cm"/>
      <fo:table-body>
      <fo:table-row   height="5.12cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID memo6 e8dc9db3-edea-4cb6-8a52-f0a3248baa47</xsl:comment>
     <fo:block-container  width="15.84cm" 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-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>