http://xml-jp.amznxslt.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=[xxx]&Version=2007-10-29&Operation=ItemLookup&ResponseGroup=OfferFull&Style=xxx.xsl&ContentType=text/html&ItemId=1234567890
というリクエストに対して
ASIN と Availability 2つの値のみを得たいのですが、どなたか修正していただけないでしょうか。
書きかけのファイルは下記のとおりです。
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:aws="http://xml.amazon.com/AWSECommerceService/2007-10-29"
version="1.0">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
</head>
<body>
</body>
</html>
<xsl:apply-templates select="aws:ItemLookupResponse/aws:Items" />
</xsl:template>
<xsl:template match="aws:Items">
<xsl:apply-templates select="aws:Item" />
</xsl:template>
<xsl:template match="aws:Item">
<br />
【ISBN10】<xsl:value-of select="aws:ASIN" />
【在庫】<xsl:value-of select="aws:Offers/aws:Offer/aws:OfferListing/aws:Price/aws:Availability"/>
</xsl:template>
</xsl:stylesheet>
コメント(0件)