title: xml to csv get elements from different roots in single row using xsl
body: <p>I want to convert below xml to csv using xsl. My challenge is i have to get elements from different roots and in sequence</p>
  
  <pre><code>&lt;root&gt;
      &lt;child1&gt;
          &lt;value1&gt;100&lt;/value1&gt;
      &lt;/child1&gt;
      &lt;child1&gt;
              &lt;value1&gt;200&lt;/value1&gt;
      &lt;/child1&gt;
      &lt;child2&gt;
          &lt;value2&gt;300&lt;/value2&gt;
      &lt;/child2&gt;
      &lt;child2&gt;
           &lt;value2&gt;400&lt;/value2&gt;
      &lt;/child2&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>expected output is :</p>
  
  <pre><code>child1,child2
  100,300
  200,400
  </code></pre>
  
  <p>Does anyone know how can we achieve this using xslt?</p>