title: XSLT generates unwanted namespace
body: <p>I have a xml like this:</p>
  
  <pre><code>&lt;blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
  xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
  xmlns:cxf="http://camel.apache.org/schema/blueprint/cxf"
  xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd           http://cxf.apache.org/blueprint/jaxws http://cxf.apache.org/schemas/blueprint/jaxws.xsd           http://camel.apache.org/schema/blueprint/cxf http://camel.apache.org/schema/blueprint/cxf/camel-cxf.xsd          http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd"&gt;
  &lt;cm:property-placeholder persistent-id="pot_kodtar_service" update-strategy="reload"/&gt;
  ...
  &lt;bean class="xxxxx.fuse.util.CommonAuthInterceptor" id="authorizationInterceptor"&gt;
      &lt;property name="methodRolesMap"&gt;
          &lt;map&gt;
              &lt;entry key="xxxElemE1" value="xxxElemE1Role"/&gt;
              &lt;entry key="xxxTipusE1" value="xxxTipusE1Role"/&gt;
              &lt;entry key="xxxLekerdezE1" value="xxxLekerdezE1Role"/&gt;
              &lt;entry key="xxxValtozasE1" value="xxxValtozasE1Role"/&gt;
          &lt;/map&gt;
      &lt;/property&gt;
      &lt;property name="globalRoles" value="xxxUsers"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>And I want to append a new element after the last entry. If I found the last element without namespace like this:</p>
  
  <pre><code>    &lt;xsl:template match="*:map/*:entry[last()]"&gt;     
      &lt;xsl:copy&gt;
          &lt;xsl:apply-templates select="node()|@*"/&gt;       
          &lt;entry key="{$service-name}" value="{$service-name}Role"/&gt;
      &lt;/xsl:copy&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>I get extra namesapces in the output document like this:</p>
  
  <pre><code>               &lt;entry key="xxxValtozasE1" value="xxxValtozasE1Role"/&gt; &lt;!-- that is last existing element--&gt;
          &lt;entry xmlns=""
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 key="xxxElemKeresE1"
                 value="xxxElemKeresE1Role"/&gt; &lt;!-- that is newly added element with unwanted namespaces--&gt;
  </code></pre>
  
  <p>The inserted entry contains extra xmlns:="" and xmlns:xsd="..." definitions. How can I eliminate these extra namespace definitions?</p>
  
  <p>thx
  Zamek</p>