Subject:using document and web service... Author:tyler horath Date:22 Oct 2008 01:53 PM Originally Posted: 22 Oct 2008 01:51 PM
So heres what Im trying to do. I am trying to search amazon for an ASIN using a name field I am provided. I want to get the ASIN using the search request url. Once I get the ASIN, I want to use that ASIN to get the product review. Heres my xslt. ITs not working because it puts all the ASINS in one url instead of puttting each ASIN in each url.
My XML is as follows
Subject:using document and web service... Author:Alberto Massari Date:23 Oct 2008 12:26 PM
if you use document($url2, .)/a:ItemSearchResponse/a:Items/a:Item/a:ASIN you will fetch all ASIN from the reply and store in the $ASIN variable; I guess you want to do a <xsl:for-each select="document($url2, .)/a:ItemSearchResponse/a:Items"> followed by the <xsl:variable select="a:Item/a:ASIN"/>.