Amazon Web Serviceのデータ処理に使うxslファイルが思うとおりに書けません。


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>

回答の条件
  • URL必須
  • 1人2回まで
  • 登録:
  • 終了:2009/03/04 18:35:03
※ 有料アンケート・ポイント付き質問機能は2023年2月28日に終了しました。

回答0件)

回答はまだありません

コメントはまだありません

この質問への反応(ブックマークコメント)

「あの人に答えてほしい」「この質問はあの人が答えられそう」というときに、回答リクエストを送ってみてましょう。

これ以上回答リクエストを送信することはできません。制限について

回答リクエストを送信したユーザーはいません