title: XSLT with XML source that has a default namespace set to xmlns
body: <p>I have an XML document with a default namespace indicated at the root.
  Something like this:</p>
  
  <pre><code>&lt;MyRoot xmlns="http://www.mysite.com"&gt;
     &lt;MyChild1&gt;
         &lt;MyData&gt;1234&lt;/MyData&gt; 
     &lt;/MyChild1&gt; 
  &lt;/MyRoot&gt;
  </code></pre>
  
  <p>The XSLT to parse the XML does not work as expected because of the
  default namespace, i.e. when I remove the namespace, everything works as
  expected.</p>
  
  <p>Here is my XSLT:</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
              xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
   &lt;xsl:template match="/" &gt;
    &lt;soap:Envelope xsl:version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;soap:Body&gt;
       &lt;NewRoot xmlns="http://wherever.com"&gt;
         &lt;NewChild&gt;
           &lt;ChildID&gt;ABCD&lt;/ChildID&gt;
           &lt;ChildData&gt;
              &lt;xsl:value-of select="/MyRoot/MyChild1/MyData"/&gt;
           &lt;/ChildData&gt;
         &lt;/NewChild&gt;
       &lt;/NewRoot&gt;
     &lt;/soap:Body&gt;
    &lt;/soap:Envelope&gt;
   &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>What needs to be done with XSLT document so that translation works properly?  What exactly needs to be done in XSLT document?</p>