title: how to apply space between data in xslt
body: <p>xml</p>
  
  <pre><code>      &lt;block4&gt;
            &lt;tag&gt;
              &lt;name&gt;50K&lt;/name&gt;
              &lt;value&gt;
                  0501/045788775099
                  Praveen   // name will come 
                  MENENDEZ Y PELAYOA CORUNA SPA // address will come
              &lt;/value&gt;
           &lt;/tag&gt;
        &lt;/block4&gt;
  </code></pre>
  
  <p>i have written a xslt  for this above tag but i have facing a problem with replacing remaining length with space 
  the above value you can see in middle line praveen is there let us assume for this xml message <strong>praveen</strong> we recieved for another message we cam may be recieve <strong>Tom</strong> but maximum length is <strong>35</strong>  so we need to caluclate the string name value remaining length we should replace with SPACE so i dunno how replace a space over there ...</p>
  
  <p>xsl</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
    &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
       &lt;xsl:output method="text" /&gt;   
   &lt;xsl:template match="/"&gt;
  
        &lt;xsl:for-each select ="block4/tag[name = '50K']"&gt;
   &lt;xsl:value-of select="concat(substring(value, 1, 5), ',',substring(substring-         before(value,'&amp;#13;'),6), ',',substring-after(value,'&amp;#13;'))" /&gt;
    &lt;/xsl:for-each&gt;
      &lt;/xsl:template&gt;
    &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>EXpected OUPUT lIKE:</p>
  
  <p><strong>0501/,045788775099,praveen............................MENENDEZ Y PELAYOA CORUNA SPA</strong>    </p>
  
  <p>where dots represents <strong>space</strong> dont assume dots </p>
  
  <p>i need space over there assume think praveen is 7 char and remaining 28 char should make space wantedly in xslt                        </p>