<?xml version="1.0"  ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:param name="column" select="'id'"/>
 <xsl:param name="order" select="'ascending'"/>
  <xsl:template match="/">
    <html>
      <body leftmargin="0" topmargin="0">
        <xsl:apply-templates select="FeaturedItems">
          <xsl:with-param name="sortcolumn" select="$column" />
          <xsl:with-param name="sortorder" select="$order" />
        </xsl:apply-templates>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="FeaturedItems">
    <xsl:param name="sortcolumn" />
    <xsl:param name="sortorder" />
    <table border="1" bordercolor="#CC0000" cellspacing="3" cellpadding="5" style="font-family:Courier New, Courier; font-size:12px; border-width:1px; border-style:solid; border-color:blue">
      <xsl:apply-templates select="searchindex/locale/item">
        <xsl:sort select="*[name()=$sortcolumn]"  order="{$sortorder}" />
      </xsl:apply-templates>
    </table>
  </xsl:template>

  <xsl:template match="item">
    <tr>
      <td style="padding-top:13px"><font color="red" style="padding-right:15px"><u>Id:</u></font><xsl:value-of select="id" /> <font color="blue"> --</font> <font color="red" style="padding-right:15px"><u>ASIN/ISBN:</u></font><xsl:value-of select="asin" /></td>
    </tr>
    <tr>
      <td style="border:none;"><img><xsl:attribute name="title"><xsl:value-of select="title" /></xsl:attribute><xsl:attribute name="src">http://images.amazon.com/images/P/<xsl:value-of select="asin" />.01.THUMBZZZ.jpg</xsl:attribute></img><font color="red" style="padding-left:52px; padding-right:43px;"><u>Title:</u></font><xsl:value-of select="title" /></td>
    </tr>
    <tr>
      <td style="border-bottom-width:1px; border-bottom-color:blue; border-bottom-style:solid; padding-bottom:13px"></td>
    </tr>
  </xsl:template>    
</xsl:stylesheet> 
