title: XSLT transformation for an xml that has nodes with the same name
body: <p>I have an XML in this format,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;catalog&gt;
  &lt;cd&gt;
      &lt;title&gt;Empire Burlesque&lt;/title&gt;
      &lt;title&gt;Hide your heart&lt;/title&gt;
      &lt;title&gt;Greatest Hits&lt;/title&gt;
      &lt;title&gt;Still got the blues&lt;/title&gt;
      &lt;title&gt;Eros&lt;/title&gt;
      &lt;title&gt;One night only&lt;/title&gt;
  &lt;/cd&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p>The XSLT for this XML is,</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"&gt;
  &lt;xsl:template match="/"&gt;
    &lt;html&gt;
        &lt;body&gt;
          &lt;table border="1"&gt;
            &lt;tr&gt;
              &lt;th&gt;Title&lt;/th&gt;
            &lt;/tr&gt;
            &lt;xsl:for-each select="catalog/cd/title"&gt;
            &lt;tr&gt;
              &lt;td&gt;&lt;xsl:value-of select="title"/&gt;&lt;/td&gt;
            &lt;/tr&gt;
            &lt;/xsl:for-each&gt;
          &lt;/table&gt;
        &lt;/body&gt;
      &lt;/html&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I want the output to look like,</p>
  
  <h2>  Title</h2>
  
  <p>Empire Burlesque<br>
  Hide your heart<br>
  Greatest Hits<br>
  Still got the blues<br>
  Eros<br>
  One night only  </p>
  
  <p>When i try to transform the above XML, i am getting an empty table, but with no titles in it. Please help me with this so i can get the expected output as shown above.
  Thanks in advance.</p>