title: Pad Value with fix length - xslt
body: <p>I have this simple xslt code:</p>
  
  <pre><code>&lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
     &lt;xsl:output method="text" indent="yes"/&gt;
     &lt;xsl:template match="/racine/Requete"&gt;
          &lt;xsl:for-each select="Row"&gt;
              &lt;xsl:value-of select="Col[@name = 'Service Point']/." /&gt;
              &lt;xsl:text&gt;ME02&lt;/xsl:text&gt;
              &lt;xsl:value-of select="Col[@name = 'Meter Number']/." /&gt;
              &lt;xsl:value-of select="Col[@name = 'Date']/." /&gt;
              &lt;xsl:value-of select="translate(Col[@name = 'Import Active kWh']/.,',','.')" /&gt;
              &lt;xsl:text&gt;30000000000000000000&lt;/xsl:text&gt;
              &lt;xsl:text&gt;&amp;#13;&lt;/xsl:text&gt;
          &lt;/xsl:for-each&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>The Meter Number parameter can have max 10 alphanumeric. so if for example the value is 232345, I want to display (pad with spaces):'    232345'. I have the same case for Import Active kWh, this is a numeric field fix 12 type numeric, but if the value is 56884, I want to display (pad with 0 at the begining) '000000056884'.</p>
  
  <p>Thanks for your useful help as usual!</p>
  
  <p>Regards.</p>