<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:output omit-xml-declaration="yes" />
<xsl:template match="ProductInfo/Details">
<item><link>
<xsl:value-of select="@url" />
</link><title>
<xsl:value-of select="ProductName" />
</title><description>
<br />
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="@url" />
</xsl:attribute>
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="ImageUrlMedium" />
</xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="hspace">4</xsl:attribute>
<xsl:attribute name="vspace">4</xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
</xsl:element>
</xsl:element>
<font size="+1">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="@url" />
</xsl:attribute>
<xsl:value-of select="ProductName" />
</xsl:element>
</font>
<br />
<xsl:choose>
<xsl:when test="Authors/Author[1]">
<xsl:text>Author: </xsl:text>
<xsl:value-of select="Authors/Author[1]" />
</xsl:when>
<xsl:when test="Artists/Artist[1]">
<xsl:text>Artist: </xsl:text>
<xsl:value-of select="Artists/Artist[1]" />
</xsl:when>
<xsl:otherwise>
<xsl:text>Manufacturer: </xsl:text>
<xsl:value-of select="Manufacturer" />
</xsl:otherwise>
</xsl:choose>
<xsl:text>; </xsl:text>
<xsl:value-of select="OurPrice" />
<xsl:if test="Availability">
<xsl:text> (</xsl:text>
<xsl:value-of select="Availability" />
<xsl:if test="Availability = 'Pre Order'">
<xsl:text>, release date </xsl:text>
<xsl:value-of select="ReleaseDate" />
</xsl:if>
<xsl:text>)</xsl:text>
</xsl:if>
<br clear="all" />
<xsl:value-of select="ProductDescription" />
<hr/>
<xsl:for-each select="Reviews/CustomerReview">
<xsl:choose>
<xsl:when test="Rating = 1">
<img src="http://g-images.amazon.com/images/G/01/detail/stars-1-0.gif" border="0" hspace="2" vspace="2" />
</xsl:when>
<xsl:when test="Rating = 2">
<img src="http://g-images.amazon.com/images/G/01/detail/stars-2-0.gif" border="0" hspace="2" vspace="2" />
</xsl:when>
<xsl:when test="Rating = 3">
<img src="http://g-images.amazon.com/images/G/01/detail/stars-3-0.gif" border="0" hspace="2" vspace="2" />
</xsl:when>
<xsl:when test="Rating = 4">
<img src="http://g-images.amazon.com/images/G/01/detail/stars-4-0.gif" border="0" hspace="2" vspace="2" />
</xsl:when>
<xsl:when test="Rating = 5">
<img src="http://g-images.amazon.com/images/G/01/detail/stars-5-0.gif" border="0" hspace="2" vspace="2" />
</xsl:when>
</xsl:choose>
<b><xsl:value-of select="Summary" /></b>
<br />
<xsl:value-of select="Comment" />
<br /><br />
</xsl:for-each>
</description></item>
</xsl:template>
<xsl:template match="/">
<xsl:apply-templates select="ProductInfo/Details" />
</xsl:template>
</xsl:stylesheet>