<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
   <cd_catalog>
<html>
<body>
   <xsl:apply-templates />
</body>
</html>
   </cd_catalog>
</xsl:template>

<xsl:template match="cd">
   <cd>
   <table width="100%" cellpadding="12" border="3" rules="none">
   <tr>
   <td width="40%" bgcolor="DCDEFF">
   <title_text>
      <em>
      CD Catalog No.
      <xsl:value-of select="@cat_no" /><br />
      </em>
   </title_text><br />   
   <img src="{cover_img}" /><br />
   <h1>
   <xsl:value-of select="artist" />
   </h1>
   <h2>
   <xsl:value-of select="title" />
   </h2>
   </td>
   <td bgcolor="EEEEFF">
      <table width="100%" border="0" rules="basic">
      <tr>
      <th align="left" width="10%"><u>No.</u></th>
      <th align="left" width="65%"><u>Song Title</u></th>
      <th align="left" width="25%"><u>Length mm:ss</u></th>
      </tr>
      <xsl:apply-templates select="track" />
      </table>
   </td>
   </tr>
   </table>
   </cd>
</xsl:template>

<xsl:template match="track">
   <tr>
   <xsl:for-each select=".">
      <td><em>
      <xsl:value-of select="@trk_no" />
      </em></td>
      <td>
      <xsl:value-of select="song_title" />
      </td>
      <td>
      <xsl:value-of select="length" /><br />
      </td>
   </xsl:for-each>
   </tr>
</xsl:template>
</xsl:stylesheet>