title: How to convert XML into formated text file whith XSlt
body: <p>I have XML file which is looks like:</p>
  
  <pre><code>&lt;Report&gt;
  &lt;Total&gt;
      &lt;RecordValues&gt;
          &lt;Record&gt;
          &lt;FieldValue fieldName="index"       fieldValue="1" /&gt;
          &lt;FieldValue fieldName="version"     fieldValue="100" /&gt;
          &lt;FieldValue fieldName="user"        fieldValue="tester" /&gt;
          &lt;FieldValue fieldName="date_modified"   fieldValue="2010-10-18 12:18:12" /&gt;
          &lt;FieldValue fieldName="object_name"     fieldValue="Menu" /&gt;
          &lt;FieldValue fieldName="permission"  fieldValue="Permission X" /&gt;
          &lt;/Record&gt;
          &lt;Record&gt;
          &lt;FieldValue fieldName="index"       fieldValue="2" /&gt;
          &lt;FieldValue fieldName="version"     fieldValue="100" /&gt;
          &lt;FieldValue fieldName="user"        fieldValue="user1" /&gt;
          &lt;FieldValue fieldName="date_modified"   fieldValue="2010-12-15 12:18:12" /&gt;
          &lt;FieldValue fieldName="object_name"     fieldValue="Control" /&gt;
          &lt;FieldValue fieldName="permission"  fieldValue="Permission E" /&gt;
          &lt;/Record&gt;
          &lt;Record&gt;
          &lt;FieldValue fieldName="index"       fieldValue="3" /&gt;
          &lt;FieldValue fieldName="version"     fieldValue="15" /&gt;
          &lt;FieldValue fieldName="user"        fieldValue="user2" /&gt;
          &lt;FieldValue fieldName="date_modified"   fieldValue="2010-10-02 12:18:12" /&gt;
          &lt;FieldValue fieldName="object_name"     fieldValue="Run" /&gt;
          &lt;FieldValue fieldName="permission"  fieldValue="Permission R" /&gt;
          &lt;/Record&gt;
      &lt;/RecordValues&gt;
  &lt;/Total&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have to convert it with XSLT into formated text file:</p>
  
  <pre><code>1 100  101810
  tester  Menu       Permission X
  2 100  121510
  user1   Control    Permission E
  3 15   100210
  user2   Run        Permission R 
  </code></pre>
  
  <p>The only <strong>fieldValue</strong> attribute must be used and all fields in the text file have fixed length. 
  Please help me.
  Thanks.</p>