title: Removing namespace from XML and editing this file in one XSLT file
body: <p>I want to remove all namespaces from XML file and found my solution like this:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
      &lt;xsl:output indent="yes" method="xml" encoding="utf-8" omit-xml-declaration="yes"/&gt;
  
     &lt;xsl:template match="*"&gt;
          &lt;xsl:element name="{local-name()}"&gt;
              &lt;xsl:apply-templates select="@* | node()"/&gt;
          &lt;/xsl:element&gt;
      &lt;/xsl:template&gt;
  
      &lt;!-- template to copy attributes --&gt;
      &lt;xsl:template match="@*"&gt;
          &lt;xsl:attribute name="{local-name()}"&gt;
              &lt;xsl:value-of select="."/&gt;
          &lt;/xsl:attribute&gt;
      &lt;/xsl:template&gt;
  
      &lt;!-- template to copy the rest of the nodes --&gt;
      &lt;xsl:template match="comment() | text() | processing-instruction()"&gt;
          &lt;xsl:copy/&gt;
      &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>How can I do other editing operations with this XML(creating new tags, search nodes) in this xslt just adding new xslt-code to previous example? I don't want to create two xslt files, delete namespaces with one and do my editing operations with another xslt-file.</p>
  
  <p>Edit. For example, I have this xml source:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
          &lt;soapenv:Body&gt;
         &lt;ns2:completeProductionPlan xmlns="http://ServiceManagement/OIS_Services_v01.00/common"
              xmlns:ns2="http://ServiceManagement/TechnicalOrderManagement/ProductionFulfillment_v01.00/types"&gt;
          &lt;ns2:messageID&gt;
              &lt;value&gt;9133235059913398501_9133235059913398860&lt;/value&gt;
          &lt;/ns2:messageID&gt;
      &lt;/ns2:completeProductionPlan&gt;
      &lt;/soapenv:Body&gt;
      &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>and want to get this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;CompletePP &gt;
  &lt;MessageId&gt;9133235059913398501_9133235059913398860&lt;/MessageId&gt;
  &lt;/CompletePP&gt; 
  </code></pre>
  
  <p>And all xslt operations I want to do in one xslt-file</p>