title: XSLT to convert XML to text
body: <p>I have a requirement where i need to generate a text file from XML document, generated text file should be in some particular format based on some rules. My XML looks something shown below:</p>
  
  <pre><code>&lt;info&gt;
   &lt;Tag1&gt;
    &lt;Tag2&gt;
     &lt;Tag3&gt;
      &lt;PartNo&gt;12 &lt;/PartNo&gt;
     &lt;/Tag3&gt;
     &lt;DBOMInf1&gt; 111 &lt;/DBOMInf1&gt;
     &lt;DBOMInf2&gt; sring &lt;/DBOMInf2&gt;
     &lt;/Tag2&gt;
     &lt;Tag2&gt;
      &lt;Tag3&gt;
       &lt;PartNo&gt;12 &lt;/PartNo&gt;
      &lt;/Tag3&gt;
      &lt;DBOMInf1&gt; 555 &lt;/DBOMInf1&gt;
      &lt;DBOMInf2&gt; abcd &lt;/DBOMInf2&gt;
     &lt;/Tag2&gt;
    &lt;/Tag1&gt;
    &lt;Tag4&gt;
     &lt;Tag5&gt;
      &lt;Description&gt;1200 liter &lt;/Description&gt;
      &lt;No&gt;12&lt;/No&gt;
      &lt;Name&gt;Engine&lt;/Name&gt;
      &lt;Id&gt;700&lt;/Id&gt;
     &lt;/Tag5&gt;
    &lt;/Tag4&gt;
    &lt;action&gt;
     &lt;actionId&gt;700&lt;/actionId&gt;
    &lt;/action&gt;
  &lt;/info&gt;
  </code></pre>
  
  <ul>
  <li>Expected output format in text:</li>
  </ul>
  
  <p>ACTIONID|NO|DESCRIPTION|NAME|DBOMInf1|DBOMInf2
  700|12|Engine|1200 liter| 111|sring
  700|12|Engine|1200 liter| 555|abcd</p>
  
  <p>I am new to XSLT programming can any body share some info or example on how can i achieve this , i am familiar with basis of XSLT like templates matching, value of select.</p>
  
  <p>Any link, or example will be very helpful.
  Thanks</p>