<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html"/>
	<xsl:template match="/">
        <html>
		<head></head>
			<body>
			<h2>Product Details</h2>
				<h3>   
				<xsl:value-of select="ItemLookupResponse/Items/Item/ItemAttributes/Title" />
				</h3> 
				<xsl:apply-templates />
			</body>
		</html>
	</xsl:template>
	<xsl:template match="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="./Items/Item/SmallImage/URL" />
						</xsl:attribute>
					</img>
				</td>
			</tr>
				<tr>
					<td>Formatted Price</td>
					<td>
						<b><xsl:value-of select="./Items/Item/OfferSummary/LowestNewPrice/FormattedPrice" /></b>
					</td>
				</tr>
				<tr>
					<td>Link to item</td>
					<td>
						<a>
							<xsl:attribute name="href">
								<xsl:value-of select="./Items/Item/DetailPageURL" />
							</xsl:attribute>
							<xsl:value-of select="./Items/Item/ItemAttributes/Title" />
						</a>
						
					</td>
				</tr>
								
			</table>
		<br/>
	</xsl:template>
		
</xsl:stylesheet>

