topical media & game development
mashup-amazon-10-10-02-Wishlist-xml-amazonCartCreate.xsl / xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:a="http://webservices.amazon.com/AWSECommerceService/2005-10-05">
<xsl:output method="html"/>
<xsl:template match="/">
<xsl:apply-templates select="a:CartCreateResponse" />
</xsl:template>
<xsl:template match="a:CartCreateResponse" >
<xsl:apply-templates select="a:Cart" />
</xsl:template>
<xsl:template match="a:Cart">
<a>
<xsl:attribute name="href">
<xsl:value-of select="a:PurchaseURL"></xsl:value-of>
</xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<b>Cart Total: </b><xsl:value-of select="a:SubTotal/a:FormattedPrice"></xsl:value-of>
Click Here to Checkout now</a>
<br/><script defer="">
CreateCookie('myCartId','<xsl:value-of select="a:CartId"/>', 7);
CreateCookie('myHMAC','<xsl:value-of select="a:URLEncodedHMAC"/>', 7);
LoadCart();
</script>
</xsl:template>
</xsl:stylesheet>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.