title: XSLT 1.0 Remove xmlns="" from element
body: <p>I have this XML message:</p>
  
  <pre><code>&lt;Orders xmlns="http://AU.InputOrders"&gt;
  &lt;Order&gt;
  &lt;OrderRef&gt;D04004451&lt;/OrderRef&gt;
  &lt;ABN&gt;9780571244461&lt;/ABN&gt;
  &lt;OrderQty&gt;1&lt;/OrderQty&gt;
  &lt;/Order&gt;
  &lt;Order&gt;
  &lt;OrderRef&gt;D04004451&lt;/OrderRef&gt;
  &lt;ABN&gt;9780571254057&lt;/ABN&gt;
  &lt;OrderQty&gt;1&lt;/OrderQty&gt;
  &lt;/Order&gt;
  &lt;Order&gt;
  &lt;OrderRef&gt;D04004452&lt;/OrderRef&gt;
  &lt;ABN&gt;9781864489545&lt;/ABN&gt;
  &lt;OrderQty&gt;1&lt;/OrderQty&gt;
  &lt;/Order&gt;
  &lt;/Orders&gt;
  </code></pre>
  
  <p>and this XSLT 1.0:</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  xmlns:ns0="http://AU.InputOrders"&gt;
  &lt;xsl:output method="xml" encoding="utf-8" omit-xml-declaration="yes" indent="no"/&gt;
  
  &lt;xsl:template match="/"&gt;
  &lt;xsl:element name="Orders" namespace="http://AU.OutputOrders"&gt;
  &lt;xsl:apply-templates select="ns0:Orders/ns0:Order[1]" /&gt;
  &lt;/xsl:element&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="*"&gt;
     &lt;xsl:element name="{local-name()}"&gt;
     &lt;xsl:copy-of select="@*" /&gt;
     &lt;xsl:apply-templates select="node()" /&gt;
     &lt;/xsl:element&gt;
  &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Above XSLT gives me the following output:</p>
  
  <pre><code>&lt;Orders xmlns="http://AU.OutputOrders"&gt;&lt;Order xmlns=""&gt;
  &lt;OrderRef&gt;D04004451&lt;/OrderRef&gt;
  &lt;ABN&gt;9780571244461&lt;/ABN&gt;
  &lt;OrderQty&gt;1&lt;/OrderQty&gt;
  &lt;/Order&gt;&lt;/Orders&gt;
  </code></pre>
  
  <p>Which is almost what I need, but I don't want that xlmns="" after Order node.</p>
  
  <p>What I want is this:</p>
  
  <pre><code>&lt;Orders xmlns="http://AU.OutputOrders"&gt;&lt;Order&gt;
  &lt;OrderRef&gt;D04004451&lt;/OrderRef&gt;
  &lt;ABN&gt;9780571244461&lt;/ABN&gt;
  &lt;OrderQty&gt;1&lt;/OrderQty&gt;
  &lt;/Order&gt;&lt;/Orders&gt;
  </code></pre>
  
  <p>Can someone help me with this?
  Thanks.</p>