title: XML to Tab delimited Text
body: <p>need the help from the XML, XSLT experts.</p>
  
  <p>I have 2 sample records exported from a system in XML format which is shown below. I like to use XSLT to convert the data to tab delimited text as shown here <a href="https://docs.google.com/spreadsheet/ccc?key=0AgOV9Or8-zdzdG8yWTlRb1hWeUhzZG02MHA5TGxqR2c" rel="noreferrer">https://docs.google.com/spreadsheet/ccc?key=0AgOV9Or8-zdzdG8yWTlRb1hWeUhzZG02MHA5TGxqR2c</a></p>
  
  <p>The transformation is a bit complex for a XML novice. I would appreciate if someone could help me by creating a XSL file.</p>
  
  <p>Thanks.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?&gt;
  &lt;Results productTitle="XYZ DB/TextWorks" productVersion="11.00" xmlns:inm="http://www.xyz.com/webpublisher/query"&gt;
  &lt;Recordset setCount="2"&gt;
  &lt;Record setEntry="0"&gt;
  &lt;ID&gt;282&lt;/ID&gt;
  &lt;TIL&gt;TIL value&lt;/TIL&gt;
  &lt;SET&gt;SET value&lt;/SET&gt;
  &lt;NOA&gt;NOA value&lt;/NOA&gt;
  &lt;NOQ&gt;NOQ value 1, NOQ value 2, NOQ value 3, NOQ value 4&lt;/NOQ&gt;
  &lt;LAN&gt;LAN value&lt;/LAN&gt;
  &lt;CAL&gt;CAL value&lt;/CAL&gt;
  &lt;INP&gt;INP value&lt;/INP&gt;
  &lt;SUT&gt;SUT value&lt;/SUT&gt;
  &lt;SUG&gt;SUG value&lt;/SUG&gt;
  &lt;EDI&gt;EDI value&lt;/EDI&gt;
  &lt;MEP /&gt;
  &lt;NOG&gt;NOG value&lt;/NOG&gt;
  &lt;IDX&gt;IDX value&lt;/IDX&gt;
  &lt;SAU /&gt;
  &lt;Database&gt;Database value&lt;/Database&gt;
  &lt;Format&gt;Format value 1&lt;/Format&gt;
  &lt;Format&gt;Format value 2&lt;/Format&gt;
  &lt;Format&gt;Format value 3&lt;/Format&gt;
  &lt;Format&gt;Format value 4&lt;/Format&gt;
  &lt;DES /&gt;
  &lt;TYP /&gt;
  &lt;UTI /&gt;
  &lt;SUR /&gt;
  &lt;DATE /&gt;
  &lt;SystemID&gt;530&lt;/SystemID&gt;
  &lt;/Record&gt;
  &lt;Record setEntry="1"&gt;
  &lt;ID&gt;373&lt;/ID&gt;
  &lt;TIL&gt;TIL value&lt;/TIL&gt;
  &lt;SET&gt;SET value&lt;/SET&gt;
  &lt;NOA&gt;NOA value&lt;/NOA&gt;
  &lt;NOQ&gt;NOQ value 1, NOQ value 2, NOQ value 3, NOQ value 4&lt;/NOQ&gt;
  &lt;LAN&gt;LAN value 1&lt;/LAN&gt;
  &lt;LAN&gt;LAN value 2&lt;/LAN&gt;
  &lt;LAN&gt;LAN value 3&lt;/LAN&gt;
  &lt;CAL&gt;CAL value&lt;/CAL&gt;
  &lt;INP&gt;INP value&lt;/INP&gt;
  &lt;SUT&gt;SUT value&lt;/SUT&gt;
  &lt;SUG /&gt;
  &lt;EDI&gt;EDI value&lt;/EDI&gt;
  &lt;MEP /&gt;
  &lt;NOG&gt;NOG value&lt;/NOG&gt;
  &lt;IDX&gt;IDX value&lt;/IDX&gt;
  &lt;SAU /&gt;
  &lt;Database&gt;Database value&lt;/Database&gt;
  &lt;Format&gt;Format value&lt;/Format&gt;
  &lt;DES /&gt;
  &lt;TYP /&gt;
  &lt;UTI /&gt;
  &lt;SUR /&gt;
  &lt;DATE /&gt;
  &lt;SystemID&gt;611&lt;/SystemID&gt;
  &lt;/Record&gt;
  &lt;/Recordset&gt;
  &lt;/Results&gt;
  </code></pre>