<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
		xmlns:amazon="http://webservices.amazon.com/AWSECommerceService/2005-10-05" exclude-result-prefixes="amazon" 
		xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
	<xsl:output method="html" version="1.0" encoding="utf-8" indent="yes" omit-xml-declaration="yes"
		doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
	
	<xsl:template match="/">
        <html>
		<head></head>
			<body>
			<h2>Product Details</h2>
				<h3>   
					<xsl:value-of select="amazon:ItemLookupResponse/amazon:Items/amazon:Item/amazon:ItemAttributes/amazon:Title" />
				</h3> 
				<xsl:apply-templates />
			</body>
		</html>
	</xsl:template>
	<xsl:template match="amazon:ItemLookupResponse">
			<table border="1" cellpadding="4" cellspacing="0" width="400">
			<tr>
				<td>Small Image</td>
				<td>
					<img>
						<xsl:attribute name="src">
							<xsl:value-of select="./amazon:Items/amazon:Item/amazon:SmallImage/amazon:URL" />
						</xsl:attribute>
					</img>
				</td>
			</tr>
				<tr>
					<td>Formatted Price</td>
					<td>
						<b><xsl:value-of select="./amazon:Items/amazon:Item/amazon:OfferSummary/amazon:LowestNewPrice/amazon:FormattedPrice" /></b>
					</td>
				</tr>
				<tr>
					<td>Link to item</td>
					<td>
						<a>
							<xsl:attribute name="href">
								<xsl:value-of select="./amazon:Items/amazon:Item/amazon:DetailPageURL" />
							</xsl:attribute>
							<xsl:value-of select="./amazon:Items/amazon:Item/amazon:ItemAttributes/amazon:Title" />
						</a>
						
					</td>
				</tr>
								
			</table>
		<br/>
	</xsl:template>
		
</xsl:stylesheet>

