title: Parsing multiple lines using XSLT
body: <p>I have the following node I need to parse using XSLT 1.0 from xml file</p>
  
  <pre><code>&lt;log&gt;Passed -ID:1 -Log:
  Passed -ID:2 -Log:Suite
  File/Folder
  Failed -ID:3 -Log:Suite
  Validate Install Failed
  Passed -ID:4 -Log:
  &lt;/log&gt;
  </code></pre>
  
  <p>Here is the  -ID: -Log:</p>
  
  <p> as you can see can be written on one line or on multiple lines.</p>
  
  <p>In result I would like to get another xml file where the data from  node will be parsed. If record with ID was Passed then I need to write "/>.
  If record was Failed then I need to write </p>
  
  <pre><code>&lt;testcase name="&lt;ID Name&gt;"&gt;
    &lt;failure message="&lt;Log Message&gt;"/&gt;
  &lt;/testcase&gt;
  </code></pre>
  
  <p>In other words I need to get this xml file.</p>
  
  <pre><code>&lt;xml&gt;
     &lt;testcase name="1"/&gt;
     &lt;testcase name="2"/&gt;
     &lt;testcase name="3"&gt;
        &lt;failure message="Suite Validate Install Failed"/&gt;
     &lt;/testcase&gt;
     &lt;testcase name="4"/&gt;
  &lt;/xml&gt;
  </code></pre>
  
  <p>What do you think can be best way to do this?</p>
  
  <p>The xml file is actually very big and I provided here only one node I need to parse. I'm using xslt because I'm getting other information from other nodes which I also need for result xml files.</p>
  
  <p>Thank you.</p>