<?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
  <html>
  
  <head>
    <title><xsl:value-of select="topiclist/@type" /></title>
    <link rel="stylesheet" type="text/css" href="links.css" />
  </head>
  
  <body>
  <table width="100%">
    <tr>
      <td><h1><xsl:value-of select="topiclist/@type" /></h1></td>
      <td align="right"><span class="rcsid"><xsl:value-of select="topiclist/@rcsid" /></span></td>
    </tr>
  </table>
  
  <table>
    <xsl:apply-templates select="topiclist/topics" />
  </table>
  
  <hr />
  <form action="http://www.google.com/search" method="get" name="f">
   <table width="100%" cellspacing="0" cellpadding="0">
    <tr align="right" valign="middle">
     <td align="right">
       <input style="font-family:Arial;" type="text" value="" name="q" size="55" maxlength="256" />
       <input style="font-family:Arial;" name="btnG" type="submit" value="Google Search" />
     </td>
    </tr>
   </table>
  </form>
  </body>
  </html>
</xsl:template>

<xsl:template match="topics">
  <tr><td><xsl:attribute name="class"><xsl:value-of select="@class" /></xsl:attribute><xsl:value-of select="@title" />:</td>
  <td><xsl:attribute name="class"><xsl:value-of select="@class" /></xsl:attribute>
  <xsl:for-each select="topic">
   <a><xsl:attribute name="href"><xsl:value-of select="@href" /></xsl:attribute>
     <xsl:value-of select="@title" /></a> |
  </xsl:for-each>
  </td></tr>
</xsl:template>

</xsl:stylesheet>
