
<xsl:stylesheet    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"    xmlns:aws="http://webservices.amazon.com/AWSECommerceService/2009-07-01"   version="1.0">
<xsl:output method="html" encoding="Shift_JIS"/>

<xsl:template match="/">
  <html lang="ja">
  <head>
  <title>XSLƒTƒ“ƒvƒ‹</title>
  </head>
  <body>

  <xsl:apply-templates select="aws:ItemLookupResponse/aws:Items/aws:Item"/>

  </body>
  </html>
</xsl:template>

<xsl:template match="aws:ItemLookupResponse/aws:Items/aws:Item">
  <p>
  <xsl:value-of select="aws:ItemAttributes/aws:Title" />
  </p>

  <p>
  <xsl:element name="img">
    <xsl:attribute name="src">
      <xsl:value-of select="aws:ImageSets/aws:ImageSet/aws:MediumImage/aws:URL" />
    </xsl:attribute>
    <xsl:attribute name="width">
      <xsl:value-of select="aws:ImageSets/aws:ImageSet/aws:MediumImage/aws:Width" />
    </xsl:attribute>
    <xsl:attribute name="height">
      <xsl:value-of select="aws:ImageSets/aws:ImageSet/aws:MediumImage/aws:Height" />
    </xsl:attribute>
    <xsl:attribute name="alt">
      <xsl:value-of select="aws:ItemAttributes/aws:Title" />
    </xsl:attribute>
  </xsl:element>
  </p>
</xsl:template>

</xsl:stylesheet>