title: XSLT with namespace in root element
body: <p>I've been tinkering with this for too long and can't seem to find the answer anywhere -- or perhaps I don't know how to word the questions. </p>
  
  <p>I have an XML file that represents a sitemap. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt;
     &lt;url&gt;
        &lt;loc&gt;http://...&lt;/loc&gt;
        &lt;pagetitle&gt;English&lt;/pagetitle&gt;
        &lt;children&gt;
           &lt;url&gt;
              &lt;loc&gt;http://...&lt;/loc&gt;
              &lt;pagetitle&gt;page title&lt;/pagetitle&gt;
           &lt;/url&gt;
           &lt;children&gt;
              ...
  </code></pre>
  
  <p>This XML represents a site map. I have written an XSLT to turn this into a hierarchical list. </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 method="html" indent="yes" version="4.0"/&gt;
  
      &lt;xsl:template match="/"&gt;
         &lt;ul&gt;&lt;xsl:apply-templates /&gt;&lt;/ul&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template match="url"&gt;
          &lt;li&gt;&lt;a href="{loc}"&gt;&lt;xsl:value-of select="pagetitle"/&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;xsl:apply-templates select="children"/&gt;
      &lt;/xsl:template&gt;
  
      &lt;xsl:template match="children"&gt;
          &lt;ul&gt;&lt;xsl:apply-templates select="url"/&gt;&lt;/ul&gt;
      &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>This style sheet doesn't work when I have <code>&lt;urlset xmlns="..&gt;</code>, but if I change the node to use just <code>&lt;xmlns&gt;</code> (without the attribute) it works. </p>
  
  <p>I am far from an XSLT guru. Anyone have a suggestion?</p>