title: XSLT to parse XML and write out a flat file with a line feed after each parent segment
body: <p>I’m new to xslt and want to use it to just write out a flat file from the xml input below.</p>
  <p>I also need a line feed after each parent segment</p>
  <p>So this:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;ns0:test xmlns:ns0=&quot;urn:mynamespace.com:test&quot;&gt;
     &lt;Header&gt;
        &lt;OderId&gt;9876&lt;/OderId&gt;
        &lt;CustomerNo&gt;Cust123&lt;/CustomerNo&gt;
        &lt;Item&gt;
           &lt;Product&gt;N1234565&lt;/Product&gt;
           &lt;SubItem&gt;
              &lt;DelDate&gt;20220601&lt;/DelDate&gt;
              &lt;Quantity&gt;10&lt;/Quantity&gt;
           &lt;/SubItem&gt;
           &lt;SubItem&gt;
              &lt;DelDate&gt;20220602&lt;/DelDate&gt;
              &lt;Quantity&gt;5&lt;/Quantity&gt;
           &lt;/SubItem&gt;
        &lt;/Item&gt;
        &lt;Item&gt;
           &lt;Product&gt;N54321&lt;/Product&gt;
           &lt;SubItem&gt;
             &lt;DelDate&gt;20220701&lt;/DelDate&gt;
             &lt;Quantity&gt;3&lt;/Quantity&gt;
           &lt;/SubItem&gt;
           &lt;SubItem&gt;
              &lt;DelDate&gt;20220702&lt;/DelDate&gt;
              &lt;Quantity&gt;17&lt;/Quantity&gt;
           &lt;/SubItem&gt;
        &lt;/Item&gt;
     &lt;/Header&gt;
  &lt;/ns0:test&gt;
  </code></pre>
  <p>Needs to produce this:</p>
  <pre><code>9876Cust123
  N1234565
  2022060110
  202206025
  N54321
  202207013
  2022070217
  </code></pre>
  <p>I’ll have way more fields than that but need to just write out everything within each parent and don’t want to specify each and every field.</p>
  <p>Thanks
  Richard</p>