title: Wrap SOAP tags/headers around XML with XSLT
body: <p>I'm trying to find XSLT that can do the following.</p>
  
  <p>I'm trying to wrap an XML message in a quick soap envelope (xml).  The source XML is not set in stone, so the XSLT should not care what the XML is. It does need to strip the XML Declaration off the top of the XML.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;foo&gt;
      &lt;bar /&gt;
  &lt;/foo&gt;
  </code></pre>
  
  <p>transformed to:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:hl7-org:v3"&gt;
      &lt;soapenv:Header/&gt;
      &lt;soapenv:Body&gt;
            &lt;foo&gt;
              &lt;bar /&gt;
            &lt;/foo&gt;
      &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;  
  </code></pre>
  
  <hr>
  
  <p>Example 2:</p>
  
  <pre><code>&lt;lady&gt;
    &lt;and&gt;
     &lt;the&gt;
      &lt;tramp /&gt;
     &lt;/the&gt;
    &lt;/and&gt;
  &lt;/lady&gt;
  
  
  
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:hl7-org:v3"&gt;
      &lt;soapenv:Header/&gt;
      &lt;soapenv:Body&gt;
           &lt;lady&gt;
             &lt;and&gt;
                &lt;the&gt;
                    &lt;tramp /&gt;
               &lt;/the&gt;
             &lt;/and&gt;
           &lt;/lady&gt;
      &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;  
  </code></pre>