<?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 c57936de-8a85-442a-80d3-07606e4e033d</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="2.51cm" margin-bottom="1.57cm"  /> 
  <fo:region-before region-name="header0" extent="2.51cm"/> 
  <fo:region-after region-name="footer0" extent="1.57cm"/> 
  </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  8fbcc41f-6180-456d-9963-fcf5b89bc811</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.99cm">
      <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.99cm"  >
        <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="4.91cm"/>
      <fo:table-column column-width="12.09cm"/>
      <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 Decline Letter 8635d84f-04fb-4d0c-bcf1-206e9ad5d111</xsl:comment>
      <fo:block   font-size="11pt"  font-family="SansSerif"  color="#000000"   text-align="center"  margin-left="0.0cm" margin-right="5.13cm"  margin-top="0.0cm"   >Decline Letter
      </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  517b3823-7e1a-42ea-80ff-84841974b33b</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.57cm">
      <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.57cm"  >
        <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  7412d4e6-c61c-4150-a0d3-3b22a275d4cd</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.45cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="17.0cm"/>
      <fo:table-body>
      <fo:table-row   height="0.45cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.64cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.51cm"/>
      <fo:table-column column-width="3.63cm"/>
      <fo:table-column column-width="6.24cm"/>
      <fo:table-column column-width="1.17cm"/>
      <fo:table-column column-width="5.45cm"/>
      <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 applicationNumber 840a2c00-04ed-48ab-81c7-f8f1c36a6776</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.03cm"  margin-top="0.0cm"   >Application Number :
      </fo:block>

        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID applicationNumber 4e1dedb0-0399-4627-91a5-f19cad383a41</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.48cm"  margin-top="0.0cm"   ><xsl:value-of select="applicationNumber"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID date 2e1e7b94-d309-4a58-914d-97569ccc3487</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.0cm"  margin-top="0.03cm"   >Date :
      </fo:block>

        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID date e012ec28-91b1-48a7-ac72-45dc27dcd308</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="2.12cm"  margin-top="0.03cm"   ><xsl:value-of select="applicantDetails/applicationDate"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.93cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.51cm"/>
      <fo:table-column column-width="3.6cm"/>
      <fo:table-column column-width="12.89cm"/>
      <fo:table-body>
      <fo:table-row   height="0.93cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID applicationBranch 9a91a46f-2d3f-4542-8d6d-f670c9cf493b</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.0cm"  margin-top="0.0cm"   >Application Branch :
      </fo:block>

        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID applicationBranch 22f4eade-fb8a-4c4a-b1c6-98658763b162</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="7.11cm"  margin-top="0.0cm"   ><xsl:value-of select="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>
 <fo:table-cell number-columns-spanned="1">
 <fo:block>
 
<xsl:comment> START Area Detail area 1 </xsl:comment>
 <xsl:comment> ID Detail area 1 b7be464e-2e63-43a9-ac27-45d7acd2fe40</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Detail header 1 18ec18fa-d019-4df8-878f-6e9c63eae3af</xsl:comment>
   <fo:table-header>
     <fo:table-row   height="0.99cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="4.93cm"/>
      <fo:table-column column-width="12.07cm"/>
       <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 applicants 6078895a-eec4-4e07-8217-710e977785ca</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="center"  margin-left="0.0cm" margin-right="5.13cm"  margin-top="0.16cm"   > Applicant Details
       </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 1</xsl:comment>
     <fo:table-row   height="0.43cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="17.0cm"/>
       <fo:table-body>
       <fo:table-row   height="0.43cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="0.69cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.48cm"/>
      <fo:table-column column-width="3.49cm"/>
      <fo:table-column column-width="6.37cm"/>
      <fo:table-column column-width="1.31cm"/>
      <fo:table-column column-width="5.35cm"/>
       <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 applicant name header 3debe99c-be7d-4582-84fa-177eb78ce69d</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.13cm"  margin-top="0.0cm"   > Applicant&apos;s Name :
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID applicant name 9af9f38e-52ea-4bcc-a209-83505b4eac4e</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.4cm"  margin-top="0.0cm"   > <xsl:value-of select="applicantNameList"  ></xsl:value-of>
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Email header e71b3936-4e7a-446d-a5ff-61e1768cbcc2</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.03cm"  margin-top="0.0cm"   > Email :
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Email 7b2c7786-6d5a-46b5-8445-750cfc26ea00</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.23cm"  margin-top="0.0cm"   > <xsl:value-of select="primaryApplicantDetails/address/email"  ></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.96cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.48cm"/>
      <fo:table-column column-width="3.49cm"/>
      <fo:table-column column-width="6.37cm"/>
      <fo:table-column column-width="1.33cm"/>
      <fo:table-column column-width="5.32cm"/>
       <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 applicant address header 73944150-e8ec-4078-b018-cc37e06e1071</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.03cm"  margin-top="0.0cm"   > Applicant&apos;s Address :
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID applicant address 5edd182e-62a0-4cef-b9df-ee0a9f7df5f4</xsl:comment>
      <fo:block-container  width="5.973333333333334cm" 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" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;$1, $2, $3, $4, $5&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="primaryApplicantDetails/address/buildingName" />
 </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="primaryApplicantDetails/address/streetName" />
 </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="primaryApplicantDetails/address/city" />
 </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="primaryApplicantDetails/address/state" />
 </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="primaryApplicantDetails/address/countryName" />
 </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-cell    number-columns-spanned="1">
       <xsl:comment> ID mobile header 6694e9ea-6185-4f57-882c-f42bc92e01c3</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.0cm"  margin-top="0.0cm"   > Mobile :
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID Mobile 3aacc7ad-4615-4957-ad5b-010251b7b806</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.23cm"  margin-top="0.0cm"   > <xsl:value-of select="concat(primaryApplicantDetails/address/mobileIsd,primaryApplicantDetails/address/mobileNo)"  ></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 Detail area 1 </xsl:comment>
 </fo:block>
 </fo:table-cell>
 </fo:table-row>
 <fo:table-row>
 <fo:table-cell number-columns-spanned="1">
 <fo:block>
 
<xsl:comment> START Area Detail area 2 </xsl:comment>
 <xsl:comment> ID Detail area 2 125a19dd-5fb5-4296-a0b0-9c1e58cec058</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Detail header 2 4c2a742f-09e4-43bc-96c3-ebfd9e423609</xsl:comment>
   <fo:table-header>
     <fo:table-row   height="0.24cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="17.0cm"/>
       <fo:table-body>
       <fo:table-row   height="0.24cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="0.64cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="4.93cm"/>
      <fo:table-column column-width="12.07cm"/>
       <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 applicationDetails add72932-7f48-40ae-8ec4-006c098396f3</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="center"  margin-left="0.0cm" margin-right="5.11cm"  margin-top="0.0cm"   > Application Details
       </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 2</xsl:comment>
     <fo:table-row   height="0.51cm">
       <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.51cm"  >
           <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.64cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.56cm"/>
      <fo:table-column column-width="5.33cm"/>
      <fo:table-column column-width="11.11cm"/>
       <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 applicationType ee582dcd-9cf4-4c5e-80b9-d46c8d49d372</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="2.03cm"  margin-top="0.0cm"   > Application Type :
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID New 3c5e8041-8fd2-4a6f-9ced-295036e7e6a5</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="6.17cm"  margin-top="0.0cm"   > New
       </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.53cm"/>
      <fo:table-column column-width="5.39cm"/>
      <fo:table-column column-width="11.08cm"/>
       <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 Product 1e775d3b-2072-4cd4-b798-134dc802970a</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.0cm"  margin-top="0.0cm"   > Business Product Name:
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID product 92c47997-5126-44fa-bc53-f4ecbdda9d54</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="2.28cm"  margin-top="0.0cm"   > <xsl:value-of select="accountType"  ></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 Detail 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 Detail area 3 </xsl:comment>
 <xsl:comment> ID Detail area 3 5aee6b5d-012a-45c8-9180-4f4ec6510546</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Detail header 3 5319528e-9f54-407a-8dc0-3a5db47cb218</xsl:comment>
   <fo:table-header>
     <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="0.72cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.53cm"/>
      <fo:table-column column-width="1.09cm"/>
      <fo:table-column column-width="5.95cm"/>
      <fo:table-column column-width="9.43cm"/>
       <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 dear adb89fbd-e34c-401f-b762-98c76e2c5b4b</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.0cm"  margin-top="0.02cm"   > Dear 
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID applicant name 80b7f6bf-91c1-45ce-afc9-385779ac415a</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.0cm"  margin-top="0.0cm"   > <xsl:value-of select="primaryApplicantDetails/fullName"  ></xsl:value-of>
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID comma 371bb475-2c39-4107-8ea9-1e8af85d6dd5</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="8.15cm"  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-header>
   <fo:table-body>
 <xsl:comment> repetition of Detail area 3</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.97cm">
       <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.97cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID body 1 83427822-0816-4d76-a321-ebcd232c89fc</xsl:comment>
      <fo:block-container  width="16.24cm" margin-left="0.0cm" margin-top="0.0cm"   >       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-right="0cm" margin-left="0cm"  margin-top="0cm" >  <fo:block-container>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="justify">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;This is regarding your Application $1 dated $2. After reviewing the application,  we regret to inform you that we are unable to process the application $1 for $3 at this time, for the following reason(s):&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="applicationNumber" />
 </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="applicantDetails/applicationDate" />
 </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="accountType" />
 </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="1.04cm">
       <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.04cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID principal reason eeb752b7-4275-465d-8bb3-2520f8cbf7ee</xsl:comment>
      <fo:block-container  width="16.266666666666666cm" margin-left="0.0cm" margin-top="0.0cm"   >       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-right="0cm" margin-left="0cm"  margin-top="0cm" >  <fo:block-container>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Principal Reason(s): $1&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="debitDeclineReason" />
 </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="2.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="2.4cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID bureau info b8c5523a-9928-485e-82d9-8af676af6a8a</xsl:comment>
      <fo:block-container  width="16.266666666666666cm" margin-left="0.0cm" margin-top="0.0cm"   >       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-right="0cm" margin-left="0cm"  margin-top="0cm" >  <fo:block-container>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Your Debit Score: </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;Bureau Name: $1&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="debitBureauInformationModel/applicantDetailsModel/debitBureauDetailsModel/bureauName" />
 </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" >Date: </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.97cm">
       <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="1.97cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID body 2 1aaf5f9c-ccf9-46b3-b0ff-028600d016fe</xsl:comment>
      <fo:block-container  width="16.266666666666666cm" margin-left="0.0cm" margin-top="0.0cm"   >       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-right="0cm" margin-left="0cm"  margin-top="0cm" >  <fo:block-container>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >We are committed to providing you with the highest standards of service in the industry. If you have any questions please contact us.</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.84cm">
       <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.84cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID bank details 9ae71ef8-b55c-4f8f-bf25-8d8f3764c4fe</xsl:comment>
      <fo:block-container  width="16.266666666666666cm" margin-left="0.0cm" margin-top="0.0cm"   >       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-right="0cm" margin-left="0cm"  margin-top="0cm" >  <fo:block-container>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" > 
<xsl:variable name="var1" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="&quot;Bank Name: $1&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="accountDetailsModel/bankName" />
 </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="/data/branchAddress" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var2"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo: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;Bank Address: $2&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="accountDetailsModel/bankName" />
 </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="/data/branchAddress" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:value-of select="$var2"   ></xsl:value-of>
</fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">
<fo:inline background-color="#ffffff" color="#000000" font-size="10pt"  font-family="SansSerif" >Bank telephone number: </fo:inline>
 </fo:block>
 <fo:block line-height="18pt" wrap-option="wrap"  text-align="left">

 </fo:block>
 </fo:block-container>
</fo:block>
       </fo:block-container>

         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
    </fo:table-body>
 </fo:table>
 

 <xsl:comment> END Area Detail area 3 </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  1657e0df-20f1-45b0-bbce-83a38a964ff0</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.55cm">
      <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.55cm"  >
        <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>


<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>