<xsl:stylesheet 
   xmlns:xsl="http://www.w3.org/TR/WD-xsl"
   xmlns="http://www.w3.org/TR/REC-html40" 
   result-ns="">

  <!-- Root template -->
  <xsl:template match="/">

   <!-- . . . other templates go here -->

     <TABLE BORDER="1" BGCOLOR="66CCFF">
     <CAPTION ALIGN="left" 
      STYLE="background-color: 0066CC; color:CCFFFF;">
              <B>Search Results</B></CAPTION>
     <TBODY>
          <TR>
            <TD><B>Product</B></TD>
            <TD><B>Company</B></TD>
            <TD><B>Description</B></TD>
          </TR>
          <xsl:for-each select="productDB/product"> 
            <TR>
               <TD>
               <xsl:choose>
                  <xsl:when test="homepage[.='null']">
                     <xsl:value-of select="prodName"/>           
                  </xsl:when>
                  <xsl:otherwise>
                     <xsl:element name="A">
                        <xsl:attribute name="href">
                           <xsl:value-of select="homepage"/>
                        </xsl:attribute >
                        <xsl:value-of select="prodName"/>           
                     </xsl:element>
                  </xsl:otherwise>
               </xsl:choose>
               </TD>
                 
               <TD>
               <xsl:choose>
                  <xsl:when test="company[.='null']">
                     N/A
                  </xsl:when>
                  <xsl:otherwise>
                     <xsl:value-of select="company"/>
                  </xsl:otherwise>
               </xsl:choose>
               </TD>
               <TD><xsl:value-of select="description"/></TD>
            </TR>
              
          </xsl:for-each> 
      </TBODY>
      </TABLE>
  </xsl:template>

  <!-- . . . other template rules here -->

</xsl:stylesheet>