title: XSLT select nodes with namespace
body: <p>I am trying to obtain the values of few tags from a xml using xslt. 
  My list.xml:</p>
  
  <pre><code>&lt;a&gt;
   &lt;na:Data xmlns:na="http://some_site.com#" Ref="http://another_site.com" 
    Key="value"&gt;
    &lt;b&gt;
      &lt;c&gt;some_c_attrib&lt;/c&gt;
      &lt;d&gt;some_d_attrib&lt;/d&gt;
      &lt;e&gt;some_e_attrib&lt;/e&gt;
      &lt;f&gt;some_f_attrib&lt;/f&gt;
      &lt;g&gt;some_g_attrib&lt;/g&gt;
    &lt;/b&gt;
    &lt;h&gt;
     &lt;i&gt;some_i_attrib&lt;/i&gt;
     &lt;j&gt;some_j_attrib&lt;/j&gt;
    &lt;/h&gt;
   &lt;/na:Data&gt;
   &lt;da:Newtag xmlns:da="http://new_site.com"&gt;
     &lt;k name="http://new_new_site.com"/&gt;
   &lt;/da:Newtag&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>My list.xsl:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:my="http://some_site.com#"
      exclude-result-prefixes="my"&gt;
      &lt;xsl:output method="html" encoding="UTF-8" /&gt;
      &lt;xsl:template match="/"&gt;
          &lt;html&gt;
              &lt;body&gt;
                  &lt;xsl:for-each select="/a/my:Data/my:e"&gt;
                    &lt;h1&gt;&lt;xsl:value-of select="f" /&gt;&lt;/h1&gt;
                  &lt;/xsl:for-each&gt;
              &lt;/body&gt;
          &lt;/html&gt; 
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>The output which I get is: </p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;h1/&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want the output to be : </p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;h1&gt;some_f_attrib&lt;/h1&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Likewise I also want to get the attribute values for c,d,e etc. The namespace is creating some problem. Without namespace I am able to access the attributes values. I guess I am going wrong in tha for-each and value-of select statements. </p>
  
  <p>Thanks</p>