title: Problems with xtt:fixedLength in Workday software
body: <p>I am trying to transform my XML to fixed width file but the param <code>xtt:fixedLength</code> is not working with my XSLT transformation. Here is my XSLT</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs"
      version="2.0" xmlns:wd="urn:com.workday.report/INT069_REP-Emp_File"
      xmlns:lancet="http://example.com/mf" 
      xmlns:xtt="urn:com.workday/xtt" xmlns:etv="urn:com.workday/etv"&gt;
  
      &lt;xsl:variable name="lineFeeder" select="'&amp;#13;&amp;#10;'" /&gt;
      &lt;xsl:template match="/wd:Report_Data"&gt;
          &lt;root&gt;
              &lt;xsl:for-each select="wd:Report_Entry"&gt;
                  &lt;Company_code xtt:fixedLength="4" xtt:paddingCharacter="0" xtt:align="right"&gt;
                      &lt;xsl:value-of select="format-number(wd:Company, '0000')" /&gt;
                  &lt;/Company_code&gt;
                  &lt;Employee_ID xtt:fixedLength="9" xtt:paddingCharacter="0" xtt:align="right"&gt;
                      &lt;xsl:value-of select="format-number(wd:Employee_ID, '000000000')" /&gt;
                  &lt;/Employee_ID&gt;
                  &lt;Last_Name xtt:fixedLength="30"&gt;
                      &lt;xsl:value-of select="lancet:stripSpecialChars(replace(normalize-unicode(translate(wd:Last_Name, ',', ''), 'NFKD'), '⁄', '/'))" /&gt;
                  &lt;/Last_Name&gt;
                  &lt;First_name xtt:fixedLength="15"&gt;
                      &lt;xsl:value-of select="lancet:stripSpecialChars(replace(normalize-unicode(translate(wd:First_Name, ',', ''), 'NFKD'), '⁄', '/'))" /&gt;
                  &lt;/First_name&gt;
                  &lt;Status xtt:fixedLength="2"&gt;
                      &lt;xsl:value-of select="wd:status" /&gt;
                  &lt;/Status&gt;
                  &lt;Cost_Center xtt:fixedLength="5"&gt;
                      &lt;xsl:value-of select="wd:Cost_Center" /&gt;
                  &lt;/Cost_Center&gt;
                  &lt;xsl:text&gt;&amp;#x0A;&lt;/xsl:text&gt;
              &lt;/xsl:for-each&gt;
          &lt;/root&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:function name="lancet:stripSpecialChars"&gt;
          &lt;xsl:param name="string" /&gt;
          &lt;xsl:variable name="AllowedSymbols" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789()*%$#@!~&amp;lt;&amp;gt;,.?[]=- +   /\ '" /&gt;
          &lt;xsl:value-of select="translate($string, translate($string, $AllowedSymbols, ''), ' ')" /&gt;
      &lt;/xsl:function&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>The output I am getting is </p>
  
  <p><strong>0001013507738HALLERICA01050</strong></p>
  
  <p>I need something like this </p>
  
  <p><strong>0001013507738HALL (26 extra spaces here) ERICA (10 extra spaces here) 010 50</strong></p>
  
  <p>My <code>xtt:FixedLength</code> is not working. Please help me out with this.</p>
  
  <p>Thanks</p>