title: Simple way to write XSLT for the XML listed
body: <p>I have a complex xml. (only some part has been shown here). How simple my XSLT can be to display the following output.</p>
  
  <p>Input XML</p>
  
  <blockquote>
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;FINALDATA CPCreatedDate_UTC="2012-4-3 16:45:36.187"&gt;
  &lt;SOLUTIONS&gt;
      &lt;PROBLEMCAUSE Key="41607CD1-1B0F-45FA-B0DF-FACBCBBFCD19"&gt;thermocouple harness
          &lt;SOLUTION&gt;
              &lt;ID&gt;20600000000000000000000000000001&lt;/ID&gt;
              &lt;MESSEAGE Key="1342F86E-6D34-429D-AE09-C71DB1933206"&gt;Broken wire&lt;/MESSEAGE&gt;
          &lt;/SOLUTION&gt;
      &lt;/PROBLEMCAUSE&gt;
      &lt;PROBLEMCAUSE Key="7C6534BE-CEA5-4BD7-8C38-C2D51B72FA42"&gt;thermocouple data
          &lt;SOLUTION&gt;
              &lt;ID&gt;20600000000000000000000000000002&lt;/ID&gt;
              &lt;MESSEAGE Key="DCA8E42A-BCD2-431F-87FA-9485F1B23C9E"&gt;Pump Value&lt;/MESSEAGE&gt;
          &lt;/SOLUTION&gt;
      &lt;/PROBLEMCAUSE&gt;
   &lt;/SOLUTIONS&gt;
  &lt;/FINALDATA&gt;
  </code></pre>
  </blockquote>
  
  <p>Output XML (Required)</p>
  
  <blockquote>
  <pre><code>&lt;Delta&gt;
  &lt;Package Time = "2012-4-3 16:45:36.187" &gt;
          &lt;Entities&gt;
          &lt;FailDatas&gt;
              &lt;FailData&gt;thermocouple harness&lt;/FailData&gt;
              &lt;FailData&gt;thermocouple data&lt;/FailData&gt;  
          &lt;/FailDatas&gt;
          &lt;Messages&gt;
              &lt;Message&gt;Broken wire&lt;/Message&gt;
              &lt;Message&gt;Pump Value&lt;/Message&gt;   
          &lt;/Messages&gt;
      &lt;/Entities&gt;
      &lt;Relationships&gt;
      &lt;/Relationships&gt;
      &lt;Relationships&gt;&lt;/Relationships&gt;
  &lt;/Package&gt;
  &lt;/Delta&gt;
  </code></pre>
  </blockquote>
  
  <p>All this i have to do based on the Key value listed above. Please help me in forming this.</p>
  
  <p>Thanks
  Ramm</p>