
<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サンプル</title>
  </head>
  <body>

  <p>[ルートノード]</p>
  <xsl:apply-templates select="aws:ItemSearchResponse"/>
  <p>[/ルートノード]</p>

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

<xsl:template match="aws:ItemSearchResponse">
  <p>[ItemSearchResponse要素]</p>
  <xsl:apply-templates select="aws:Items"/>
  <p>[/ItemSearchResponse要素]</p>
</xsl:template>

<xsl:template match="aws:Items">
  <p>[Items要素]</p>
  <p>
  <xsl:apply-templates select="aws:Item"/>
  </p>
  <p>[/Items要素]</p>
</xsl:template>

<xsl:template match="aws:Item">
  [Item要素]
</xsl:template>

</xsl:stylesheet>