<?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 a1d7140c-0bf1-4aff-b49b-5d6b71d99538</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.01cm" margin-bottom="3.0cm"  /> 
  <fo:region-before region-name="header0" extent="1.01cm"/> 
  <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  e8199db4-8aa9-45ec-bd1e-cab3c0ead68f</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="1.01cm">
      <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.01cm"  >
        <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  579455e1-026f-46b8-8f32-5c652cb38bd8</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  cf667380-a6f4-4309-9e75-87ec47a2dd08</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.65cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="11.8cm"/>
      <fo:table-column column-width="5.2cm"/>
      <fo:table-body>
      <fo:table-row   height="0.65cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID bankName 2b53f482-140b-43c7-8b89-6d9bb84ff2f4</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.75cm"  margin-top="0.13cm"   ><xsl:value-of select="ipaDetails/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.5cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="11.8cm"/>
      <fo:table-column column-width="5.2cm"/>
      <fo:table-body>
      <fo:table-row   height="0.5cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID branchName dddcfef8-64db-4186-9950-22eb84a8e616</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.75cm"  margin-top="0.0cm"   ><xsl:value-of select="ipaDetails/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.48cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="11.8cm"/>
      <fo:table-column column-width="5.2cm"/>
      <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 Date 19472d67-dd89-4a69-b76c-2d112dffbed2</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.75cm"  margin-top="0.0cm"   ><xsl:value-of select="approvalDetails/ipaIssueDate"  ></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.48cm">
      <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.48cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID customerName d8adbb03-59ee-4b87-bfcd-9638616f0b82</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.0cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/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.48cm">
      <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.48cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID addressLine1 0c2c94eb-6835-4e71-a3ec-605b88b0fc51</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.02cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/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.48cm">
      <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.48cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID addressLine2 5e02b595-2020-4e7f-9414-8add1efc445b</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.0cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/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.48cm">
      <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.48cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID state a27dd551-7d27-430f-bb12-99e2cc2fc8cc</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.0cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/state"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.48cm">
      <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.48cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID country 635d8319-d249-4bc2-afa7-0a7500759dfc</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.0cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/countryName"  ></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.77cm">
      <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.77cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID pinCode 21f7c15b-081e-45a9-9cf0-cba574ee141c</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.0cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/pinCode"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.51cm">
      <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.51cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID Dear 68cdc4d6-e1b2-41ff-9d43-cd928b76181d</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.03cm"  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>
 <fo:table-cell number-columns-spanned="1">
 <fo:block>
 
<xsl:comment> START Area IPA Approval Detail Area </xsl:comment>
 <xsl:comment> ID IPA Approval Detail Area 721eaece-19dd-4edf-896b-2a80431747e2</xsl:comment>

<xsl:comment> ID IPA Approval start 4a0c7343-5e14-4327-b133-ef1d899f3987</xsl:comment>
<xsl:variable name="SiteName" select="/data/approvalDetails/userResponse" />
 <xsl:choose>
<xsl:when test="$SiteName = 'Approved'"> <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <fo:table-body>
 <xsl:comment> repetition of IPA Approval Detail Area</xsl:comment>
     <fo:table-row   height="0.4cm">
       <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.4cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
         <fo:block></fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="0.83cm">
       <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="0.83cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Approval Subject 365dd495-321a-4e1e-82a3-e02fea771f61</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"   > Sub: Your In-Principle Approval Request
       </fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="1.39cm">
       <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.39cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Congratulations abc6847c-0f72-4c7c-8d5c-d03a41f364f9</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="14pt" wrap-option="wrap"  text-align="justify">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Congratulations.</fo:inline><fo:inline background-color="#ffffff" color="#000000" font-size="12pt"  font-family="Times" > </fo:inline><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 confirm that $1 has assessed your financial position and determined that you qualify for the following loan.&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="ipaDetails/bankName" />
 </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.73cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.51cm"/>
      <fo:table-column column-width="4.08cm"/>
      <fo:table-column column-width="12.41cm"/>
       <fo:table-body>
       <fo:table-row   height="0.73cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Borrowers 3b4c81f5-d34d-4649-bcd1-70facbc1d7f3</xsl:comment>
      <fo:block-container  width="4.0cm" 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="20pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold"  font-style="italic" >Proposed Borrower/s:</fo:inline>
 </fo:block>
 </fo:block-container>
</fo:block>
       </fo:block-container>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">

 <xsl:comment> ID List Of Borrowers 828469b4-38f3-4b9a-86b3-95b1dfedc5ff</xsl:comment>
 <fo:block line-height="20pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >
<xsl:for-each select="/data/applicantDetails/applicantDetailsModel" >
<xsl:if test="position()!=1"> , </xsl:if>
<xsl:value-of select="fullName"/>
</xsl:for-each>	
</fo:inline>
</fo:block>
         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="1.26cm">
       <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="1.26cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Copy of Borrowers f184ec18-2adb-472d-aa0c-a5d5fde4621c</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="20pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold"  font-style="italic" >Business Product:	</fo:inline><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;						$2 - $3&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="approvalDetails/eligibileLoanAmount" />
 </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="ipaDetails/productCode" />
 </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="ipaDetails/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="ipaDetails/currencyCode" />
 </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="approvalDetails/eligibileLoanAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="20pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold"  font-style="italic" >Approved In Principle Amount:</fo:inline><fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-style="italic" >	</fo:inline><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;		$4 $1&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="approvalDetails/eligibileLoanAmount" />
 </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="ipaDetails/productCode" />
 </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="ipaDetails/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="ipaDetails/currencyCode" />
 </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="approvalDetails/eligibileLoanAmount" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></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.85cm">
       <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.85cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Interest Details 1add7f54-ef0a-4f9b-b56d-230fdffd4ae0</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="20pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold"  font-style="italic" >Interest Rate on which IPA is offered:	</fo:inline><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="approvalDetails/ipaRate" />
 </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="approvalDetails/loanTenure" />
 </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="approvalDetails/ipaExpiryDate" />
 </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="approvalDetails/emi" />
 </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="ipaDetails/currencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="20pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold"  font-style="italic" >Loan Tenure:</fo:inline><fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold" >	</fo:inline><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;												$2&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="approvalDetails/ipaRate" />
 </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="approvalDetails/loanTenure" />
 </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="approvalDetails/ipaExpiryDate" />
 </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="approvalDetails/emi" />
 </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="ipaDetails/currencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="20pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold"  font-style="italic" >Instalment Amount:											</fo:inline><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;$5 &quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="approvalDetails/ipaRate" />
 </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="approvalDetails/loanTenure" />
 </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="approvalDetails/ipaExpiryDate" />
 </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="approvalDetails/emi" />
 </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="ipaDetails/currencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></xsl:value-of>
</fo:inline><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;$4&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="approvalDetails/ipaRate" />
 </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="approvalDetails/loanTenure" />
 </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="approvalDetails/ipaExpiryDate" />
 </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="approvalDetails/emi" />
 </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="ipaDetails/currencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="20pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold"  font-style="italic" >I</fo:inline><fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold"  font-style="italic" >PA Expiry Date:	</fo:inline><fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif"  font-weight="bold" >	</fo:inline><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;										$3&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="approvalDetails/ipaRate" />
 </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="approvalDetails/loanTenure" />
 </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="approvalDetails/ipaExpiryDate" />
 </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="approvalDetails/emi" />
 </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="ipaDetails/currencyCode" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var5"   ></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.53cm">
       <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.53cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Empty line ab305eb8-44a3-4299-a9c4-775c37e38de2</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.12cm"  margin-top="0.0cm"   > 
       </fo:block>

         </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.48cm"/>
      <fo:table-column column-width="16.52cm"/>
       <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 Conditions 8b7261bc-d3ae-45d9-9af4-974b3876672e</xsl:comment>
      <fo:block-container  width="16.373333333333335cm" 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="14pt" wrap-option="wrap"  text-align="justify">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Although we have indicated that you qualify for the above loan, this letter is not an offer of finance. Before we formally offer you finance and provide a loan agreement the following conditions will need to be met to the satisfaction of the Bank.</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="2.72cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="1.17cm"/>
      <fo:table-column column-width="15.83cm"/>
       <fo:table-body>
       <fo:table-row   height="2.72cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Terms And Conditions 151d684f-337e-40fc-a1c8-248161f6ba21</xsl:comment>
      <fo:block-container  width="15.626666666666667cm" 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:list-block>
 <fo:list-item>
 <fo:list-item-label end-indent="label-end()">
 <fo:block>&#x2022; </fo:block>
 </fo:list-item-label>
 <fo:list-item-body  start-indent="body-start()">
 <fo:block  wrap-option="wrap"  text-align="justify">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Mortgage of the property /house located at an address to be determined.</fo:inline>
 </fo:block>
 </fo:list-item-body>
 </fo:list-item>
 <fo:list-item>
 <fo:list-item-label end-indent="label-end()">
 <fo:block>&#x2022; </fo:block>
 </fo:list-item-label>
 <fo:list-item-body  start-indent="body-start()">
 <fo:block  wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;If deemed necessary, $1 may require security assessment and inspection of the above mentioned collateral offered as security.&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="ipaDetails/bankName" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var1"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 </fo:list-item-body>
 </fo:list-item>
 <fo:list-item>
 <fo:list-item-label end-indent="label-end()">
 <fo:block>&#x2022; </fo:block>
 </fo:list-item-label>
 <fo:list-item-body  start-indent="body-start()">
 <fo:block  wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >The secured loan amount (including fee/charges) should not exceed our assessed value.</fo:inline>
 </fo:block>
 </fo:list-item-body>
 </fo:list-item>
 <fo:list-item>
 <fo:list-item-label end-indent="label-end()">
 <fo:block>&#x2022; </fo:block>
 </fo:list-item-label>
 <fo:list-item-body  start-indent="body-start()">
 <fo:block  wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >You provide the Bank with confirmation of your income details.</fo:inline>
 </fo:block>
 </fo:list-item-body>
 </fo:list-item>
 <fo:list-item>
 <fo:list-item-label end-indent="label-end()">
 <fo:block>&#x2022; </fo:block>
 </fo:list-item-label>
 <fo:list-item-body  start-indent="body-start()">
 <fo:block  wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >There is no change in the financial position from the date of this letter until you receive the loan agreement.</fo:inline>
 </fo:block>
 </fo:list-item-body>
 </fo:list-item>
 <fo:list-item>
 <fo:list-item-label end-indent="label-end()">
 <fo:block>&#x2022; </fo:block>
 </fo:list-item-label>
 <fo:list-item-body  start-indent="body-start()">
 <fo:block  wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Confirmation of all details provided upon making this application.</fo:inline>
 </fo:block>
 </fo:list-item-body>
 </fo:list-item>
 <fo:list-item>
 <fo:list-item-label end-indent="label-end()">
 <fo:block>&#x2022; </fo:block>
 </fo:list-item-label>
 <fo:list-item-body  start-indent="body-start()">
 <fo:block  wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >You comply with KYC</fo:inline>
 </fo:block>
 </fo:list-item-body>
 </fo:list-item>
 <fo:list-item>
 <fo:list-item-label end-indent="label-end()">
 <fo:block>&#x2022; </fo:block>
 </fo:list-item-label>
 <fo:list-item-body  start-indent="body-start()">
 <fo:block  wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Acceptance of this offer on or before the IPA expiry date stated in this letter.</fo:inline>
 </fo:block>
 </fo:list-item-body>
 </fo:list-item>
 </fo:list-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.44cm">
       <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.44cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
         <fo:block></fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
    </fo:table-body>
 </fo:table>
 

<xsl:comment> ID IPA Approval End 12fff59a-d337-47f3-b48e-30c1c5d12f32</xsl:comment>
</xsl:when>
</xsl:choose>
 <xsl:comment> END Area IPA Approval Detail 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 IPA Rejection Detail Area </xsl:comment>
 <xsl:comment> ID IPA Rejection Detail Area 9395b48f-5f99-4937-878c-46447ed6f29c</xsl:comment>

<xsl:comment> ID IPA Rejection Start 8d91833f-51de-4e25-bfda-798a3024b90f</xsl:comment>
<xsl:variable name="SiteName" select="/data/approvalDetails/userResponse" />
 <xsl:choose>
<xsl:when test="$SiteName = 'Rejected'"> <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <fo:table-body>
 <xsl:comment> repetition of IPA Rejection Detail Area</xsl:comment>
     <fo:table-row   height="0.72cm">
       <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="0.72cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
         <fo:block></fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="1.23cm">
       <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.23cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Rejection Subject bd220707-56b7-4996-bf8d-1bae00231aad</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"   > Sub: Rejection of In-Principle Approval Request
       </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 Rejection Contents 27574d43-a663-4b7b-95c1-52f182f2dbf6</xsl:comment>
      <fo:block-container  width="16.32cm" 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="15pt" wrap-option="wrap"  text-align="justify">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >We regret to inform you that your request for an ‘In Principle Approval’ has been declined .The reason for this decision is that you do not meet the required criteria.</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.09cm">
       <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="1.09cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Contact us f3488ec4-5e50-4380-8811-dbde91bec0aa</xsl:comment>
      <fo:block-container  width="16.32cm" 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="15pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Please feel free to contact us if you need further clarification.</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.4cm">
       <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.4cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
         <fo:block></fo:block>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
    </fo:table-body>
 </fo:table>
 

<xsl:comment> ID IPA Rejection End b2291599-a43f-4744-b105-fedf32a11d0c</xsl:comment>
</xsl:when>
          </xsl:choose>
 <xsl:comment> END Area IPA Rejection Detail 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  e92a8899-e211-4f10-ba62-992b85c9e3b3</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="1.07cm">
      <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.07cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID Yours 2a1a15ba-a694-4428-8ab7-566aa5cb8222</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="8.61cm"  margin-top="0.0cm"   >Yours faithfully,
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.51cm">
      <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.51cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID Manager 433cd24a-bd6e-4971-bee2-a92c5d5d342e</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="3.59cm"  margin-top="0.0cm"   >Manager
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.35cm">
      <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.35cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID bankName 2707c8a1-18d1-47c2-a9ee-06f89c8ccb84</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="3.59cm"  margin-top="0.0cm"   ><xsl:value-of select="ipaDetails/bankName"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>


<xsl:comment> END Area Report Footer  </xsl:comment>
</fo:block>
</fo:table-cell>
</fo:table-row>
  </fo:table-body>
</fo:table>
  </xsl:for-each>

</xsl:if>

<xsl:comment> END Area Report Header  </xsl:comment>
<fo:block id="last-page"/></fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
<xsl:template name="string-replace-all">
    <xsl:param name="text" />
    <xsl:param name="replace" />
    <xsl:param name="by" />
    <xsl:choose>
        <xsl:when test="$text = '' or $replace = ''or not($replace)" >
            <!-- Prevent this routine from hanging -->
            <xsl:value-of select="$text" />
        </xsl:when>
        <xsl:when test="contains($text, $replace)">
            <xsl:value-of select="substring-before($text,$replace)" />
            <xsl:value-of select="$by" />
            <xsl:call-template name="string-replace-all">
                <xsl:with-param name="text" select="substring-after($text,$replace)" />
                <xsl:with-param name="replace" select="$replace" />
                <xsl:with-param name="by" select="$by" />
            </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
            <xsl:value-of select="$text" />
        </xsl:otherwise>
    </xsl:choose>
</xsl:template></xsl:stylesheet>