<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">

<html>
  <body>
    <h2>Video Catalog</h2>
    
    <table border="1">
	<!-- Header -->
    <tr bgcolor="#9acd32">
      <th align="left">Title</th>
      <th align="left">Artist</th>
      <th align="left">Country</th>
      <th align="left">Company</th>
	  <th align="left">Price</th>
	  <th align="left">Year</th>
    </tr>
    
    <!-- looping through each node-set <video> -->
    <!-- <catalog><cd> -->
    <xsl:for-each select="catalog/cd">
    <tr>
      <!-- <xsl:value-of> extracts value of an XML element  -->
	  <!-- the select attribute is an XPath expression -->
      <td><xsl:value-of select="title"/></td>
      <td><xsl:value-of select="artist"/></td>
      <td><xsl:value-of select="country"/></td>
      <td><xsl:value-of select="company"/></td>
	  <td><xsl:value-of select="price"/></td>
	  <td><xsl:value-of select="year"/></td>
    </tr>
    </xsl:for-each> <!-- close loop -->
    
    </table>
  </body>
  </html>
  
</xsl:template>
</xsl:stylesheet>