title: XSLT Remove all attribute for one root element from xml using XSLT
body: <p>I have the following root element of a big XML file:</p>
  
  <pre><code>&lt;Interchange xmlns='http://www.e2b.no/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'   
  xsi:schemaLocation='http://www.e2b.no/XMLSchema Interchange'&gt;
  </code></pre>
  
  <p>I need to get </p>
  
  <pre><code>&lt;Interchange&gt;
  </code></pre>
  
  <p>Please advice, Sorry, I will not give examples of my attempts
  I will use basic template:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                            xmlns:e2b='http://www.e2b.no/XMLSchema'&gt;
  &lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" /&gt;
  &lt;xsl:strip-space elements="*" /&gt;
  
  &lt;!-- copy everything as-is apart from exceptions below --&gt;
  &lt;xsl:template match="node() | @*"&gt;
      &lt;xsl:copy&gt;
          &lt;xsl:apply-templates select="node() | @*"/&gt;
      &lt;/xsl:copy&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="e2b:Interchange"&gt;
  &lt;Interchange&gt;
  &lt;xsl:apply-templates/&gt;
  &lt;/Interchange&gt;
  &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>When I tested I accidentally sent big XML to input with the beginning:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='ISO-8859-1'?&gt;
  &lt;Interchange&gt;
  </code></pre>
  
  <p>insted</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='ISO-8859-1'?&gt;
  &lt;Interchange xmlns='http://www.e2b.no/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'  
  xsi:schemaLocation='http://www.e2b.no/XMLSchema Interchange'&gt;
  </code></pre>
  
  <p>Because I answered positive on my previous question.</p>
  
  <p>Please advice, any ideas.</p>