Can someone please tell me what the xslt style sheet needs to be to style this xml file:
<?xml version="1.0" encoding="UTF-8"?>
<BrowseNodeLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<OperationRequest>
<HTTPHeaders>
<Header Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1">
</Header>
</HTTPHeaders>
<RequestId>09ZDHZ7PV71DC7Z168WA</RequestId>
<Arguments>
<Argument Name="AssociateTag" Value="xxxxx"></Argument>
<Argument Name="Service" Value="AWSECommerceService"></Argument>
<Argument Name="SubscriptionId" Value="yyyyy"></Argument>
<Argument Name="Signature" Value="zzzzz"></Argument>
<Argument Name="ResponseGroup" Value="NewReleases"></Argument>
<Argument Name="Operation" Value="BrowseNodeLookup"></Argument>
<Argument Name="BrowseNodeId" Value="676410011"></Argument>
<Argument Name="Timestamp" Value="2012-03-03T16:37:17Z"></Argument>
</Arguments>
<RequestProcessingTime>0.0326540470123291</RequestProcessingTime>
</OperationRequest>
<BrowseNodes>
<Request>
<IsValid>True</IsValid>
<BrowseNodeLookupRequest>
<BrowseNodeId>676410011</BrowseNodeId>
<ResponseGroup>NewReleases</ResponseGroup>
</BrowseNodeLookupRequest>
</Request>
<BrowseNode>
<BrowseNodeId>676410011</BrowseNodeId>
<Name>Games</Name>
<NewReleases>
<NewRelease>
<ASIN>B0073POVPK</ASIN>
<Title>Pokepark 2: Wonders Beyond (Wii)</Title>
</NewRelease>
<NewRelease>
<ASIN>B0076X58XI</ASIN>
<Title>Back to the Future: The Game (Wii)</Title>
</NewRelease>
</NewReleases>
<TopItemSet>
<Type>NewReleases</Type>
<TopItem>
<ASIN>B0073POVPK</ASIN>
<Title>Pokepark 2: Wonders Beyond (Wii)</Title>
<DetailPageURL>http://www.amazon.co.uk/Pokepark-2-Wonders-Beyond-Wii-Nintendo/dp/B0073POVPK%3FSubscriptionId%3D116AQMJ35GESH5XBF1G2%26tag%3Dwii07-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0073POVPK</DetailPageURL>
<ProductGroup>Video Games</ProductGroup>
</TopItem>
<TopItem>
<ASIN>B0076X58XI</ASIN>
<Title>Back to the Future: The Game (Wii)</Title>
<DetailPageURL>http://www.amazon.co.uk/Back-Future-Game-Wii-Nintendo/dp/B0076X58XI%3FSubscriptionId%3D116AQMJ35GESH5XBF1G2%26tag%3Dwii07-21%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0076X58XI</DetailPageURL>
<ProductGroup>Video Games</ProductGroup>
</TopItem>
</TopItemSet>
</BrowseNode>
</BrowseNodes>
</BrowseNodeLookupResponse>
The full file is here - http://www.wiiuser.co.uk/XML_Games_NR1_original.xml
so that it looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xml xmlns:aws="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<root>
<NewRelease>
<asin>B0073POVPK</asin>
<Title>Pokepark 2: Wonders Beyond (Wii)</Title>
</NewRelease>
<NewRelease>
<asin>B0076X58XI</asin>
<Title>Back to the Future: The Game (Wii)</Title>
</NewRelease>
</root>
</xml>
The full output file is here - http://www.wiiuser.co.uk/XML_Games_NR1_styled.xml
I know I'm asking for a lot of help here, and I wouldn't normally ask, but I'm really stuck and have tried for days to get it to work. I'm sure it's pretty straightforward for those who know how to do it but I'm not one of them unfortunately.
Please don't mark me down for asking this.
Thanks in advance for any help offered.
This is the xslt file I was using before Amazon change the schema but now it's not working. Maybe there was a problem with it before but the schema change affected it.
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aws="http://webservices.amazon.com/AWSECommerceService/2011-08-01">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xml>
<root>
<xsl:apply-templates select="aws:BrowseNodeLookupResponse/BrowseNodes/BrowseNode/NewReleases/NewRelease" />
</root>
</xml>
</xsl:template>
<xsl:template match="aws:NewRelease">
<NewRelease>
<asin>
<xsl:value-of select="aws:ASIN" />
</asin>
<Title>
<xsl:value-of select="aws:Title" />
</Title>
</NewRelease>
</xsl:template>
</xsl:stylesheet>