title: XSLT injects unwanted namespace in output file
body: <p>I've seen similar questions, but it is still unclear to me.  I don't want the "n1" namespace to appear in the attribute of the node in the output file.  But I had to create the "n1" namespace in the xslt file in order to get xpath to work. Thank you.</p>
  
  <p>XSLT:</p>
  
  <pre><code>   &lt;xsl:stylesheet version="1.0" 
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
          xmlns:n1="http://www.spicefactory.org/parsley"
          xmlns="http://www.spicefactory.org/parsley"
          &gt;
  
      &lt;xsl:output method="xml" indent="no"/&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="n1:object[@type='mytype1']"&gt;
        &lt;object  type="mytype2"&gt;
          &lt;xsl:apply-templates select="node()"/&gt;
        &lt;/object&gt;
       &lt;/xsl:template&gt;
  </code></pre>
  
  <p>EXCERPT FROM OUTPUT XML FILE:</p>
  
  <pre><code>&lt;object type="mytype2" xmlns:n1="http://www.spicefactory.org/parsley"&gt;
  </code></pre>