<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:j4lif="http://java4less.com/fop/iform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:j4lext="xalan://com.java4less.xreport.fop.XLSTExtension"  extension-element-prefixes="j4lext j4luserext" xmlns:j4luserext="xalan://com.java4less.xreport.fop.XLSTDummyExtension"  >

<lic xmlns="com.java4less.xreport.fop.lic" >
<data>PGNvbXBhbnk+PG5hbWU+T1JBQ0xFIEZJTkFOQ0lBTCBTRVJWSUNFIFNPRlRXQVJFIExURDwvbmFtZT48ZGF0ZT4zMC0xMC0yMDIwPC9kYXRlPjxudW1iZXI+OTg1NzwvbnVtYmVyPjx0eXBlPmVudGVycHJpc2U8L3R5cGU+PC9jb21wYW55Pg==</data>
<hash>imp2ECmEwah4lwZ4/QxIE9QPmyc=</hash></lic>
<xsl:template match="/">
<xsl:comment> Generated by J4L FO Designer 2.14.*</xsl:comment>
<xsl:comment> Apex Encoding: false</xsl:comment>
<xsl:comment> Target environment: cloud</xsl:comment>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
<fo:layout-master-set>
<xsl:comment> ID Master1 180f8095-0493-4200-a48d-82512671649f</xsl:comment>
<fo:simple-page-master master-name="master0" page-width="21.0cm" page-height="29.7cm" margin-top="2.0cm"   margin-bottom="2.0cm" margin-left="2.0cm"  margin-right="2.0cm"  > 
  <fo:region-body  region-name="body0" margin-top="3.0cm" margin-bottom="3.0cm"  /> 
  <fo:region-before region-name="header0" extent="3.0cm"/> 
  <fo:region-after region-name="footer0" extent="3.0cm"/> 
  </fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="master0">
<fo:static-content flow-name="header0">
<xsl:comment> ID Page Header  74b6e01d-fb52-4865-80b0-d6d09559b582</xsl:comment>
<fo:table  table-layout="fixed"  width="17.0cm"   >
  <fo:table-column column-width="17.0cm"/>
  <fo:table-body>
<xsl:comment> repetition of Page Header </xsl:comment>
    <fo:table-row   height="3.0cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="17.0cm"/>
      <fo:table-body>
      <fo:table-row   height="3.0cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>


</fo:static-content>
<fo:static-content flow-name="footer0">
<xsl:comment> ID Page Footer  d11cf031-b803-4912-8b61-da3315d9371d</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  9e7025ec-3018-42c6-9f9e-b934801b32be</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.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.56cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="11.81cm"/>
      <fo:table-column column-width="5.19cm"/>
      <fo:table-body>
      <fo:table-row   height="0.56cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID bankNameValue 5284a00f-a5a2-47bb-842f-ee2b2b9d3878</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="1.67cm"  margin-top="0.0cm"   ><xsl:value-of select="loanDetails/bankName"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.48cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.45cm"/>
      <fo:table-column column-width="11.39cm"/>
      <fo:table-column column-width="5.16cm"/>
      <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 To 812edc82-f6a1-401e-af3b-8a2537459874</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="9.39cm"  margin-top="0.0cm"   >To,
      </fo:block>

        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID branchNameValue 64145cad-8a07-423a-b49c-1f97fa8abf29</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="1.29cm"  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.51cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="11.39cm"/>
      <fo:table-column column-width="5.19cm"/>
      <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 fullName febe9a3d-468f-4d03-80a1-f716002fae7e</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="6.45cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/fullName"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID date ffb80af3-9df4-4b85-b559-dcb0271d030d</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="1.83cm"  margin-top="0.03cm"   ><xsl:value-of select="loanDetails/applicationDate"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.53cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="16.57cm"/>
      <fo:table-body>
      <fo:table-row   height="0.53cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID addressLine1 135bea3e-65a1-4fb8-a002-cfb73d9e3d58</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.64cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/addressLine1"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.51cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="16.57cm"/>
      <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 addressLine2 029e30f7-2b89-4166-8c87-a811e3599331</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.64cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/addressLine2"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="0.53cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="16.57cm"/>
      <fo:table-body>
      <fo:table-row   height="0.53cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID stateValue 2285efbb-24d3-4e07-b145-36f77f2a45d7</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.67cm"  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.53cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="16.57cm"/>
      <fo:table-body>
      <fo:table-row   height="0.53cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID cityValue 67e42d12-e8f3-44da-b881-c680b834cef1</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.64cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/city"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="1.12cm">
      <fo:table-cell>
      <fo:table  table-layout="fixed" width="100%">
      <fo:table-column column-width="0.43cm"/>
      <fo:table-column column-width="16.57cm"/>
      <fo:table-body>
      <fo:table-row   height="1.12cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID pincodeValue c913ca1c-09fd-4204-8cb3-5441b9c62bfd</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="11.85cm"  margin-top="0.0cm"   ><xsl:value-of select="primaryApplicantDetails/address/pinCode"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
 <fo:table-row>
 <fo:table-cell number-columns-spanned="1">
 <fo:block>
 
<xsl:comment> START Area Detail area 1 </xsl:comment>
 <xsl:comment> ID Detail area 1 d593ca8c-69ac-4b85-a9f3-6431166f86d2</xsl:comment>
 <fo:table  table-layout="fixed"  width="17.0cm"   >
   <fo:table-column column-width="17.0cm"/>
   <xsl:comment> ID Detail header 1 ee124e21-1927-4c78-8b05-62d4226ddcdb</xsl:comment>
   <fo:table-header>
     <fo:table-row   height="0.29cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="17.0cm"/>
       <fo:table-body>
       <fo:table-row   height="0.29cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
     </fo:table-row>
     </fo:table-body>
     </fo:table>
     </fo:table-cell>
     </fo:table-row>
     <fo:table-row   height="0.88cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.48cm"/>
      <fo:table-column column-width="1.01cm"/>
      <fo:table-column column-width="15.51cm"/>
       <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 Re 01fee7f4-336d-412b-8c78-8a1b49e6a45d</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"   > Re :
       </fo:block>

         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID loanInitiation 5ca61d79-855d-4cc5-9981-e91342e864af</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="8.52cm"  margin-top="0.0cm"   > Loan Initiation Advice
       </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.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">
       <xsl:comment> ID dear fcfd2847-5778-41a3-9f2b-6c04efeef460</xsl:comment>
       <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="13.4cm"  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-header>
   <fo:table-body>
 <xsl:comment> repetition of Detail area 1</xsl:comment>
     <fo:table-row   height="2.29cm">
       <fo:table-cell>
       <fo:table  table-layout="fixed" width="100%">
       <fo:table-column column-width="0.53cm"/>
      <fo:table-column column-width="16.47cm"/>
       <fo:table-body>
       <fo:table-row   height="2.29cm"  >
           <fo:table-cell    number-columns-spanned="1">
<fo:block />
         </fo:table-cell>
         <fo:table-cell    number-columns-spanned="1">
       <xsl:comment> ID memo1 bba6a8b3-0fea-4517-8347-24d3a1c392fc</xsl:comment>
      <fo:block-container  width="16.266666666666666cm" margin-left="0.0cm" margin-top="0.13cm"   >       <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;Thank you for applying for a Loan with  $1 .Your Loan  application $2 is being processed for $3 and currently in progress. We shall further communicate with you.&quot;" />
 <xsl:with-param name="replace" select="'$1'" />
 <xsl:with-param name="by" select="loanDetails/branchName" />
 </xsl:call-template>
 </xsl:variable>
 <xsl:variable name="var2" >
 <xsl:call-template name="string-replace-all">
 <xsl:with-param name="text" select="$var1" />
 <xsl:with-param name="replace" select="'$2'" />
 <xsl:with-param name="by" select="applicationNumber" />
 </xsl:call-template>
 </xsl:variable>
 <xsl: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-body>
 </fo:table>
 

 <xsl:comment> END Area Detail area 1 </xsl:comment>
 </fo:block>
 </fo:table-cell>
 </fo:table-row>
<fo:table-row>
<fo:table-cell number-columns-spanned="1">
<fo:block>

<xsl:comment> START Area Report Footer  </xsl:comment>
<xsl:comment> ID Report Footer  31bf910b-2ee8-44c8-9b21-02cb2b4e6c85</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.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.88cm">
      <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.88cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID Yoursfaithfully, 72a66599-1781-4ab1-b297-6f14426a0655</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="13.83cm"  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.59cm">
      <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.59cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID bankName 00111b90-037b-403b-9dd8-3d3547747561</xsl:comment>
      <fo:block   font-size="10pt"  font-family="SansSerif"  color="#000000"   text-align="left"  margin-left="0.0cm" margin-right="0.17cm"  margin-top="0.0cm"   ><xsl:value-of select="loanDetails/bankName"  ></xsl:value-of>
      </fo:block>

        </fo:table-cell>
    </fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row   height="1.11cm">
      <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.11cm"  >
        <fo:table-cell    number-columns-spanned="1">
<fo:block />
        </fo:table-cell>
        <fo:table-cell    number-columns-spanned="1">
      <xsl:comment> ID branchName 44e9d6e3-15d2-40b0-8d2c-2fd8ba25564e</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-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>