<?xml version="1.0" ?> 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<body>
<table id="basic">
<tr>
    <th bgcolor="#cccccc" colspan="3">Dane o sprzeday</th>
</tr>
<tr>
    <th bgcolor="#999999">ASIN</th>
    <th bgcolor="#999999">Tytu</th>
    <th bgcolor="#999999">Pozycja w rankingu sprzeday</th>
</tr>
<xsl:for-each select="ProductInfo/Details">
<tr>
    <td><xsl:value-of select="Asin" /></td>
    <td><xsl:value-of select="ProductName" /></td>
    <td><xsl:value-of select="SalesRank" /></td>
</tr>
</xsl:for-each>
<tr><td colspan="3"></td></tr>
<tr>
    <td bgcolor="#ffcc00" colspan="2" align="right">
        <b>rednia pozycja w rankingu</b>
    </td>
    <td bgcolor="#ffcc00">=ROUND(AVERAGE(C3:C<xsl:value-of 
select="count(ProductInfo/Details) + 2" />),0)</td>
    </tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>