<?xml version="1.0"?>

<xsl:stylesheet 

xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 

version="1.0">

<xsl:output method="html" encoding="euc-jp"/>



<xsl:template match="/">



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



</xsl:template>



<xsl:template match="Details">

<xsl:variable name="asin" select="Asin" />

<xsl:variable name="name" select="ProductName" />

<xsl:variable name="img" select="ImageUrlMedium" />

<xsl:variable name="author" select="Authors/Author" />

<xsl:variable name="price" select="ListPrice" />

<xsl:variable name="date" select="ReleaseDate" />

<xsl:variable name="manu" select="Manufacturer" />

<xsl:variable name="baseurl">http://www.amazon.co.jp/exec/obidos/ASIN/</xsl:variable>



<a>

<xsl:attribute name="href">

<xsl:value-of select="concat($baseurl, $asin, '/ref=nosim/associate-ID/')" />

</xsl:attribute>

<xsl:attribute name="target">_blank</xsl:attribute>



<img>

<xsl:attribute name="src">

<xsl:value-of select="$img"/>

</xsl:attribute>

<xsl:attribute name="border">0</xsl:attribute>

</img>

</a>



<a>

<xsl:attribute name="href">

<xsl:value-of select="concat($baseurl, $asin, '/ref=nosim/associate-ID/')" />

</xsl:attribute>

<xsl:attribute name="target">_blank</xsl:attribute>

<strong>

<xsl:value-of select="$name"/>

</strong>

</a>

<br />

<xsl:value-of select="$author"/>

<br />

<xsl:value-of select="$manu"/>

<xsl:text> </xsl:text>

<xsl:value-of select="$date"/>

<br />

<xsl:value-of select="$price"/>

<br />



</xsl:template>



</xsl:stylesheet>