<?xml version="1.0"?>

<!-- Taken from Core Web Programming from           -->
<!-- Prentice Hall and Sun Microsystems Press,      -->
<!-- http://www.corewebprogramming.com/.            -->
<!-- &copy; 2001 Marty Hall and Larry Brown;        -->
<!-- may be freely used or adapted.                 -->

<!-- Style sheet using a basic TABLE elements.      -->
<!-- Suitable for Netscape.                         -->
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html"/>
  <xsl:template match="/">
    <TABLE CELLPADDING="3" BORDER="1" ALIGN="CENTER">
      <CAPTION>Stout Medal Award</CAPTION>
      <TR>
        <TH>Year</TH>
        <TH>Cultivar</TH>
        <TH>Bloom Season</TH>
        <TH>Cost</TH>
      </TR>
      <!-- Select daylilies awarded Stout Medal. -->
      <xsl:apply-templates
        select="/perennials/daylily[award/name='Stout Medal']"/>
      <TR>
        <TD COLSPAN="4" ALIGN="CENTER">
          E-early M-midseason L-late</TD>
      </TR>
    </TABLE>
  </xsl:template>
  <xsl:template match="daylily">
    <TR>
      <TD><xsl:value-of select="award/year"/></TD>
      <TD><xsl:value-of select="cultivar"/></TD>
      <!-- Select the bloom code. -->
      <TD ALIGN="CENTER"><xsl:value-of select="bloom/@code"/></TD>
      <TD ALIGN="RIGHT"><xsl:value-of select="cost"/></TD>
   </TR>
  </xsl:template>
</xsl:stylesheet>