title: Remove a specific xmlns from root element of xml
body: <p>I'm trying to make a transformation for an XML document but i cannot find a solution since i do not know XSLT.
  I have the XML document:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;addresses xmlns=&quot;http://www.test.org/xml&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
         xsi:noNamespaceSchemaLocation='http://whatever/test.xsd'&gt;
  
    &lt;address&gt;
      &lt;name&gt;Joe Tester&lt;/name&gt;
      &lt;street&gt;Baker street 5&lt;/street&gt;
    &lt;/address&gt;
  
  &lt;/addresses&gt;
  </code></pre>
  <p>and I want to produce:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;addresses xmlns=&quot;http://www.test.org/xml&quot;&gt;
  
    &lt;address&gt;
      &lt;name&gt;Joe Tester&lt;/name&gt;
      &lt;street&gt;Baker street 5&lt;/street&gt;
    &lt;/address&gt;
  
  &lt;/addresses&gt;
  </code></pre>
  <p>(Consider that xsi:noNamespaceSchemaLocation=&quot;...&quot; has already excluded using another XSLT before this one).</p>
  <p>Can someone help me find a solution?</p>
  <p>The XSLT used to eliminate the xsi:noNamespaceSchemaLocation is:</p>
  <pre><code>&lt;xsl:stylesheet version=&quot;1.0&quot;
   xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;
   xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  &gt;
  
  &lt;xsl:output omit-xml-declaration=&quot;yes&quot; indent=&quot;yes&quot;/&gt;
  &lt;xsl:strip-space elements=&quot;*&quot;/&gt;
  
  &lt;xsl:template match=&quot;@* | node()&quot;&gt;
   &lt;xsl:copy&gt;
    &lt;xsl:apply-templates select=&quot;@* | node()&quot; /&gt;
   &lt;/xsl:copy&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match=&quot;@xsi:noNamespaceSchemaLocation&quot;/&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>