title: xsl:include template with no default namespace causes xmlns=""
body: <p>I've got a problem with <strong>xsl:include</strong> and default namespaces which is causing the final xml document contain nodes with the <strong>xmlns=""</strong></p>
  
  <p>In this synario I have 1 source document which is Plain Old XML and doesn't have a namespace:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;SourceDoc&gt;
      &lt;Description&gt;Hello I'm the source description&lt;/Description&gt;
      &lt;Description&gt;Hello I'm the source description 2&lt;/Description&gt;
      &lt;Description/&gt;
      &lt;Title&gt;Hello I'm the title&lt;/Title&gt;
  &lt;/SourceDoc&gt;
  </code></pre>
  
  <p>This document is transformed into <strong>2 different</strong> xml documents each with <strong>their own default namespace</strong>. </p>
  
  <p>First Document:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;OutputDocType1 xmlns="http://MadeupNS1"&gt;
     &lt;Description &gt;Hello I'm the source description&lt;/Description&gt;
     &lt;Description&gt;Hello I'm the source description 2&lt;/Description&gt;
     &lt;Title&gt;Hello I'm the title&lt;/Title&gt;
  &lt;/OutputDocType1&gt;
  </code></pre>
  
  <p>Second Document:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;OutputDocType2 xmlns="http://MadeupNS2"&gt;
     &lt;Description&gt;Hello I'm the source description&lt;/Description&gt;
     &lt;Description&gt;Hello I'm the source description 2&lt;/Description&gt;
     &lt;DocTitle&gt;Hello I'm the title&lt;/DocTitle&gt;
  &lt;/OutputDocType2&gt;
  </code></pre>
  
  <p>I want to be able to re-use the template for <strong>descriptions</strong> in both of the transforms. As it's the same logic for both types of document. To do this I created a template file which was <strong>xsl:include</strong>d in the other 2 transformations:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
      &lt;xsl:output indent="yes" method="xml"/&gt;
  
      &lt;xsl:template match="Description[. != '']"&gt;
          &lt;Description&gt;
              &lt;xsl:value-of select="."/&gt;
          &lt;/Description&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Now the problem here is that this shared transformation <strong>can't</strong> have a default Namespace as it will be different depending on which of the calling transformations calls it. </p>
  
  <p>E.g. for First Document Transformation:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
      &lt;xsl:output indent="yes" method="xml"/&gt;
      &lt;xsl:template match="SourceDoc"&gt;
          &lt;OutputDocType1 xmlns="http://MadeupNS1"&gt;
  
              &lt;xsl:apply-templates select="Description"/&gt;
              &lt;xsl:if test="Title"&gt;
                  &lt;Title&gt;
                      &lt;xsl:value-of select="Title"/&gt;
                  &lt;/Title&gt;
              &lt;/xsl:if&gt;
          &lt;/OutputDocType1&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:include href="Template.xsl"/&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>This actually outputs it as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;OutputDocType1 xmlns="http://MadeupNS1"&gt;
     &lt;Description xmlns=""&gt;Hello I'm the source description&lt;/Description&gt;
     &lt;Description xmlns=""&gt;Hello I'm the source description 2&lt;/Description&gt;
     &lt;Title&gt;Hello I'm the title&lt;/Title&gt;
  &lt;/OutputDocType1&gt;
  </code></pre>
  
  <p>Here is the problem. On the description Lines I get an <strong>xmlns=""</strong></p>
  
  <p>Does anyone know how to solve this issue?</p>
  
  <p>Thanks</p>
  
  <p>Dave</p>