<?xml version="1.0"?>
<xsl:stylesheet 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  version="1.0">
  <xsl:output method="html" encoding="utf-8"/>

<xsl:template match="/">

<html lang="ja">
<head>
</head>
<body>

<xsl:apply-templates select="ProductInfo/Details" />

</body>
</html>

</xsl:template>

<xsl:template match="Details">
<xsl:variable name="asin" select="Asin" />
<xsl:variable name="name" select="ProductName" />
<xsl:variable name="img" select="ImageUrlSmall" />
<xsl:variable name="baseurl">http://www.amazon.co.jp/exec/obidos/ASIN/</xsl:variable>

	<img>
  	  <xsl:attribute name="src">
  	  <xsl:value-of select="$img"/>
  	  </xsl:attribute>
  	  <xsl:attribute name="border">0</xsl:attribute>
	</img>

<br />

  	<a>
  	<xsl:attribute name="href">
  	<xsl:value-of select="concat($baseurl, $asin, '/ref=nosim/goodpic-22/')" />
  	</xsl:attribute>
	<xsl:attribute name="target">_blank</xsl:attribute>
	<xsl:value-of select="$name"/>
	</a>

<br />

</xsl:template>

</xsl:stylesheet>

