title: XSLT: Remove namespace prefix from elements
body: <p>I need to remove the namespace prefix from an un-SOAP'd message.</p>
  
  <p>This is the message that has had the SOAP envelope removed. As you can see it contains <strong><em>ns1</em></strong> prefix on the elements:</p>
  
  <pre><code>&lt;ns1:BookingSource xmlns:ns1="urn:EDI/Booking/artifacts"&gt;
      &lt;ns1:BookingHeader&gt;
          &lt;ns1:BookingNo&gt;000123&lt;/ns1:BookingNo&gt;
          &lt;ns1:BookingDate&gt;01/01/2012&lt;/ns1:BookingDate&gt;
          &lt;ns1:DSBookingDetail&gt;
              &lt;ns1:BookingNo&gt;000123&lt;/ns1:BookingNo&gt;
              &lt;ns1:SeqNo&gt;1&lt;/ns1:SeqNo&gt;
              &lt;ns1:LineType&gt;Item&lt;/ns1:LineType&gt;
              &lt;ns1:ProductCode&gt;Box&lt;/ns1:ProductCode&gt;
          &lt;/ns1:DSBookingDetail&gt;
          &lt;ns1:DSBookingDetail&gt;
              &lt;ns1:BookingNo&gt;000123&lt;/ns1:BookingNo&gt;
              &lt;ns1:SeqNo&gt;2&lt;/ns1:SeqNo&gt;
              &lt;ns1:LineType&gt;Item&lt;/ns1:LineType&gt;
              &lt;ns1:ProductCode&gt;BrakeShoe&lt;/ns1:ProductCode&gt;
          &lt;/ns1:DSBookingDetail&gt;
      &lt;/ns1:DSBookingHeader&gt;
      &lt;ns1:BookingHeader&gt;
          &lt;ns1:BookingNo&gt;000124&lt;/ns1:BookingNo&gt;
          &lt;ns1:BookingDate&gt;01/01/2012&lt;/ns1:BookingDate&gt;
          &lt;ns1:DSBookingDetail&gt;
              &lt;ns1:BookingNo&gt;000124&lt;/ns1:BookingNo&gt;
              &lt;ns1:SeqNo&gt;1&lt;/ns1:SeqNo&gt;
              &lt;ns1:LineType&gt;Item&lt;/ns1:LineType&gt;
              &lt;ns1:ProductCode&gt;Box&lt;/ns1:ProductCode&gt;
          &lt;/ns1:DSBookingDetail&gt;
          &lt;ns1:DSBookingDetail&gt;
              &lt;ns1:BookingNo&gt;000124&lt;/ns1:BookingNo&gt;
              &lt;ns1:SeqNo&gt;2&lt;/ns1:SeqNo&gt;
              &lt;ns1:LineType&gt;Item&lt;/ns1:LineType&gt;
              &lt;ns1:ProductCode&gt;BrakeShoe&lt;/ns1:ProductCode&gt;
          &lt;/ns1:DSBookingDetail&gt;
      &lt;/ns1:DSBookingHeader&gt;
  &lt;/ns1:BookingSource&gt;
  </code></pre>
  
  <p>To this:</p>
  
  <pre><code>&lt;BookingSource&gt;
      &lt;BookingHeader&gt;
          &lt;BookingNo&gt;000123&lt;/BookingNo&gt;
          &lt;BookingDate&gt;01/01/2012&lt;/BookingDate&gt;
          &lt;DSBookingDetail&gt;
              &lt;BookingNo&gt;000123&lt;/BookingNo&gt;
              &lt;SeqNo&gt;1&lt;/SeqNo&gt;
              &lt;LineType&gt;Item&lt;/LineType&gt;
              &lt;ProductCode&gt;Box&lt;/ProductCode&gt;
          &lt;/DSBookingDetail&gt;
          &lt;DSBookingDetail&gt;
              &lt;BookingNo&gt;000123&lt;/BookingNo&gt;
              &lt;SeqNo&gt;2&lt;/SeqNo&gt;
              &lt;LineType&gt;Item&lt;/LineType&gt;
              &lt;ProductCode&gt;BrakeShoe&lt;/ProductCode&gt;
          &lt;/DSBookingDetail&gt;
      &lt;/DSBookingHeader&gt;
      &lt;BookingHeader&gt;
          &lt;BookingNo&gt;000124&lt;/BookingNo&gt;
          &lt;BookingDate&gt;01/01/2012&lt;/BookingDate&gt;
          &lt;DSBookingDetail&gt;
              &lt;BookingNo&gt;000124&lt;/BookingNo&gt;
              &lt;SeqNo&gt;1&lt;/SeqNo&gt;
              &lt;LineType&gt;Item&lt;/LineType&gt;
              &lt;ProductCode&gt;Box&lt;/ProductCode&gt;
          &lt;/DSBookingDetail&gt;
          &lt;DSBookingDetail&gt;
              &lt;BookingNo&gt;000124&lt;/BookingNo&gt;
              &lt;SeqNo&gt;2&lt;/ns1:SeqNo&gt;
              &lt;LineType&gt;Item&lt;/LineType&gt;
              &lt;ProductCode&gt;BrakeShoe&lt;/ProductCode&gt;
          &lt;/DSBookingDetail&gt;
      &lt;/DSBookingHeader&gt;
  &lt;/BookingSource&gt;
  </code></pre>
  
  <p>I've searched through the KB and found some hints on how to do it, but the final solution evades me.</p>
  
  <p>Thanks,
  Tony.</p>