title: Fixed Format Output w/ Column Data of Various Lengths
body: <p>XSLT v 1.0
  Source XML</p>
  <pre><code>    &lt;Vehicle&gt;
         &lt;Parts&gt;
           &lt;Part SN=&quot;1234567&quot; PartNumber=&quot;223232&quot; Build=&quot;2W345&quot; Manuf=&quot;K3E4&quot; Mater=&quot;12312&quot;&gt;
             &lt;Inspections ManufI=&quot;K3F4&quot;/&gt; 
             &lt;Recalls  ID=&quot;1223-4&quot; Status=&quot;02&quot;/&gt;
             &lt;Recalls  ID=&quot;1987-9&quot; Status=&quot;07&quot; /&gt;
             &lt;Recalls ID=&quot;1211-10&quot; Status=&quot;17&quot; /&gt;
             &lt;Recalls ID=&quot;4545-1&quot; Status=&quot;07&quot; /&gt;
             &lt;Recalls ID=&quot;2291-7&quot; Status=&quot;01&quot; /&gt;
             &lt;Recalls ID=&quot;2322-4&quot; Status=&quot;04&quot; /&gt;
           &lt;/Part&gt;
           &lt;Part SN=&quot;1255&quot; PartNumber=&quot;87666&quot; Build=&quot;3ED55&quot; Manuf=&quot;98772&quot; Mater=&quot;8YT76&quot;&gt;
             &lt;Inspections /&gt; 
             &lt;Recalls  ID=&quot;5676-4&quot; Status=&quot;01&quot;/&gt;
             &lt;Recalls  ID=&quot;13347-9&quot; Status=&quot;01&quot; /&gt; 
               &lt;Part&gt; SN=&quot;1256&quot; PartNumber=&quot;76554&quot; Build=&quot;3R453&quot; Manuf=&quot;7U7Yt&quot; 
                                      Mater=&quot;9I123&quot;&gt;
                &lt;Inspections /&gt;
                &lt;Recalls /&gt;
               &lt;/Part&gt;
           &lt;/Part&gt;
      &lt;/Parts&gt;
      &lt;/Vehicle&gt;
  </code></pre>
  <p>I'm trying to produce the following fixed format file.  The 'recalls' list is just a list of recalls for the serial number (SN) it has no relationship to the Type and Code columns to its left.  As the sample demonstrates it may be longer or shorter than the list of type and codes.</p>
  <pre><code>SN          PartNumber  Type    Code         Recall     Status
  1234567     223232      Manuf   K3E4         1223-4     02
                          ManufI  K3F4         1987-9     07
                          Mater   12312        1211-10    17
                          Build   2W345        4545-1     07
                                               2291-7     01
                                               2322-4     01
  
  1255        87666       Manuf   98772        5676-4     01
                          Mater   8YT76        13347-9    01
                          Build   3ED55    
  
  1256        76554       Manuf   7U7Yt
                          Mater   9I123
                          Build   3R453  
  </code></pre>