title: removing xml nodes using xslt but original XML namespace sand header should be retained
body: <p>i checked the example in this link but it works for solution other way around , removees the nodes of the ID that i passed on to.</p>
  
  <p><a href="https://stackoverflow.com/questions/12152519/removing-xml-nodes-using-xslt">Removing XML Nodes using XSLT</a>?</p>
  
  <p>For example</p>
  
  <pre><code>&lt;Message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dt="example.lessson.1:v3"  &gt;
      &lt;dt:Header&gt;     
          &lt;dt:MessageId&gt;12121212121212121&lt;/dt:MessageId&gt;
          &lt;dt:Timestamp&gt;2013-01-01T00:00:00&lt;/dt:Timestamp&gt;
          &lt;dt:MessageType&gt;2&lt;/dt:MessageType&gt;
      &lt;/dt:Header&gt;
  &lt;dt:Body &gt;
  &lt;Rowsets&gt;
  &lt;Rowset&gt; 
      &lt;Row&gt;
          &lt;FirstName&gt;Michael&lt;/FirstName&gt;
           &lt;LastName&gt;David&lt;/LastName&gt;
           &lt;Phone&gt;1234567890&lt;/Phone&gt;
           &lt;ID&gt;111111&lt;ID&gt;
      &lt;/Row&gt;
      &lt;Row&gt;
          &lt;FirstName&gt;David&lt;/FirstName&gt;
          &lt;LastName&gt;Michael&lt;/LastName&gt;
          &lt;Phone&gt;01234567890&lt;/Phone&gt;
          &lt;ID&gt;222222&lt;ID&gt;
      &lt;/Row&gt;
      &lt;Row&gt;
          &lt;FirstName&gt;Yang&lt;/FirstName&gt;
          &lt;LastName&gt;Christina&lt;/LastName&gt;
          &lt;Phone&gt;2345678901&lt;/Phone&gt;
          &lt;ID&gt;333333&lt;ID&gt;
      &lt;/Row&gt;
      &lt;Row&gt;
          &lt;FirstName&gt;Grey&lt;/FirstName&gt;
          &lt;LastName&gt;Meredith&lt;/LastName&gt;
          &lt;Phone&gt;3456789012&lt;/Phone&gt;
          &lt;ID&gt;4444444&lt;ID&gt;
      &lt;/Row&gt;
      &lt;Row&gt;
          &lt;FirstName&gt;David&lt;/FirstName&gt;
          &lt;LastName&gt;Shepherd&lt;/LastName&gt;
          &lt;Phone&gt;5678901234&lt;/Phone&gt;
          &lt;ID&gt;5555555&lt;ID&gt;
      &lt;/Row&gt;
  &lt;/Rowset&gt;
  &lt;/Rowsets&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I need to run an XSLt that will use the ID i pass and create a new xml with only that node and header and other body tags retained
  example if i pass 111111,222222,333333 as the input the output should be </p>
  
  <pre><code>&lt;Message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dt="example.lessson.1:v3"  &gt;
  
      &lt;dt:Header&gt;     
          &lt;dt:MessageId&gt;12121212121212121&lt;/dt:MessageId&gt;
          &lt;dt:Timestamp&gt;2013-01-01T00:00:00&lt;/dt:Timestamp&gt;
          &lt;dt:MessageType&gt;2&lt;/dt:MessageType&gt;
      &lt;/dt:Header&gt;
  &lt;dt:Body &gt;
  &lt;Rowsets&gt;
  &lt;Rowset&gt; 
      &lt;Row&gt;
          &lt;FirstName&gt;Michael&lt;/FirstName&gt;
           &lt;LastName&gt;David&lt;/LastName&gt;
           &lt;Phone&gt;1234567890&lt;/Phone&gt;
           &lt;ID&gt;111111&lt;ID&gt;
      &lt;/Row&gt;
      &lt;Row&gt;
          &lt;FirstName&gt;David&lt;/FirstName&gt;
          &lt;LastName&gt;Michael&lt;/LastName&gt;
          &lt;Phone&gt;01234567890&lt;/Phone&gt;
          &lt;ID&gt;222222&lt;ID&gt;
      &lt;/Row&gt;
      &lt;Row&gt;
          &lt;FirstName&gt;Yang&lt;/FirstName&gt;
          &lt;LastName&gt;Christina&lt;/LastName&gt;
          &lt;Phone&gt;2345678901&lt;/Phone&lt;ID&gt;333333&lt;ID&gt;
      &lt;/Row&gt; 
  &lt;/Rowset&gt;
  &lt;/Rowsets&gt;
  &lt;/body&gt;
  </code></pre>