title: Web.config transform moving namespace declaration
body: <p>Using <a href="https://webconfigtransformationtester.apphb.com/" rel="noreferrer">this online tester</a> it is easy to see the following issue</p>
  
  <p>I have a web.config that looks like:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;nlog/&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>And a transform that looks like:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"&gt;
    &lt;xdt:Import assembly="AppHarbor.TransformTester" namespace="AppHarbor.TransformTester.Transforms"/&gt;
  
    &lt;nlog xdt:Transform="Replace"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
      &lt;targets async="true"&gt;
        &lt;target name="LogMill" xsi:type="FallbackGroup" returnToFirstOnSuccess="true"&gt;
          &lt;target xsi:type="LogMillMessageBus"/&gt;
          &lt;target xsi:type="File" fileName="..\LogMill-FailSafe.log" layout="${TextErrorLayout}"/&gt;
        &lt;/target&gt;
      &lt;/targets&gt;
    &lt;/nlog&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>But the output is not what I expect, it moves the xsi namespace declaration down to the element that uses it, which causes nlog to fail to parse the configuration with the error <code>Parameter p4 not supported on FallbackGroupTarget</code></p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
    &lt;nlog&gt;
      &lt;targets async="true"&gt;
        &lt;target name="LogMill" p4:type="FallbackGroup" returnToFirstOnSuccess="true" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance"&gt;
        &lt;target p4:type="LogMillMessageBus" /&gt;&lt;target p4:type="File" fileName="..\LogMill-FailSafe.log" layout="${TextErrorLayout}" /&gt;
        &lt;/target&gt;
      &lt;/targets&gt;
    &lt;/nlog&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Is there a transform option or syntax that I can apply to prevent it from moving the namespace declaration? I couldn't find anything in <a href="http://msdn.microsoft.com/en-us/library/dd465326%28v=vs.110%29.aspx" rel="noreferrer">the documentation</a></p>