title: how can I mask the mid values in incoming request via xslt
body: <p>how can I mask the mid values in incoming request via xslt. for e.g my incoming request field is </p>
  
  <pre><code>&lt;CreditCardNumber&gt;0123456789&lt;/CreditCardNumber&gt; 
  </code></pre>
  
  <p>and output should be </p>
  
  <pre><code>&lt;CreditCardNumber&gt;012**56789&lt;/CreditCardNumber&gt; .  
  </code></pre>
  
  <p>I am able to achieve using this output </p>
  
  <pre><code>&lt;CreditCardNumber&gt;012***56789&lt;/CreditCardNumber&gt; 
  </code></pre>
  
  <p>via this code </p>
  
  <pre><code>&lt;xsl:value-of select="replace(.,substring(.,$length -6 , 2),'*')"/&gt;
  </code></pre>
  
  <p>but the issue is that  it is showing only one masked value for two positions, so how can we make this dynamic ?</p>