topical media & game development
mashup-amazon-10-10-02-Wishlist-xml-AmazonListSearch.xsl / xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tns="http://www.w3.org/1999/xhtml"
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:ListSearchResponse"/>
</xsl:template>
<xsl:template match="a:ListSearchResponse">
<h2>Lists Search Results</h2>
<xsl:apply-templates select="a:Lists"/>
</xsl:template>
<xsl:template match="a:Lists">
<xsl:apply-templates select="a:List"/>
</xsl:template>
<!-- The List template -->
<xsl:template match="a:List">
<xsl:value-of select="a:CustomerName"/>'s
<xsl:value-of select="a:ListType"/> has
<xsl:value-of select="a:TotalItems"/> items and was
created on <xsl:value-of select="a:DateCreated"/><br/>
Look it up <a href="javascript:void(0)">
<xsl:attribute name="onclick">ListLookup('<xsl:value-of select="a:ListId"/>');</xsl:attribute>
<xsl:value-of select="a:ListId"/>
</a> or
<a>
<xsl:attribute name="href">
<xsl:value-of select="a:ListURL"/>
</xsl:attribute>
Visit <xsl:value-of select="a:ListName"/>
</a><br/>
<hr/>
</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.