Amazon Explorer v108 - XSL Code
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.1">
- <xsl:output method="html"/>
- <!--User Defined Variables-->
- <xsl:variable name="title" select="'Amazon Explorer'"/>
- <xsl:variable name="bookmarktitle" select="'Support This Site By Using This
Bookmark To Make Purchases At Amazon.com.'"/>
- <xsl:variable name="associate-id" select="'celticstones'"/>
- <xsl:variable name="image-url"
select="'http://celtic-one-design.com/images/amz_images1/'"/>
- <xsl:variable name="target" select="'_blank'"/>
- <xsl:variable name="AWSversion"
select="'http://xml-na.amznxslt.com/onca/xml3?'"/>
- <!-- Do Not Modify The Following Variables-->
- <xsl:variable name="STOREFRONT" select="ProductInfo/Request/Args/Arg[@name =
'storefront']/@value" />
- <xsl:variable name="MYBOTTOMSTORE"
select="/ProductInfo/Request/Args/Arg[@name='mybottomstore']/@value"/>
- <xsl:variable name="TYPE"
select="/ProductInfo/Request/Args/Arg[@name='type']/@value"/>
- <xsl:variable name="PAGE"
select="/ProductInfo/Request/Args/Arg[@name='page']/@value"/>
- <xsl:variable name="MODE"
select="/ProductInfo/Request/Args/Arg[@name='mode']/@value"/>
- <xsl:variable name="SORT"
select="/ProductInfo/Request/Args/Arg[@name='sort']/@value"/>
- <xsl:variable name="template-url"
select="/ProductInfo/Request/Args/Arg[@name='f']/@value"/>
- <xsl:variable name="developer-tag" select="'D33U9QUBB1LUSJ'"/>
- <xsl:variable name="SearchType">
- <xsl:choose>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='BrowseNodeSearch']">BrowseNodeSearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='BrowseNodeSearch']/@value"
/></xsl:when>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='PowerSearch']">PowerSearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='PowerSearch']/@value" /></xsl:when>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='AuthorSearch']">AuthorSearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='AuthorSearch']/@value"
/></xsl:when>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='ArtistSearch']">ArtistSearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='ArtistSearch']/@value"
/></xsl:when>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='ActorSearch']">ActorSearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='ActorSearch']/@value" /></xsl:when>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='DirectorSearch']">DirectorSearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='DirectorSearch']/@value"
/></xsl:when>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='ManufacturerSearch']">ManufacturerSearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='ManufacturerSearch']/@value"
/></xsl:when>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='AsinSearch']">AsinSearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='AsinSearch']/@value" /></xsl:when>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='SimilaritySearch']">SimilaritySearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='SimilaritySearch']/@value"
/></xsl:when>
- <xsl:when
test="/ProductInfo/Request/Args/Arg[@name='KeywordSearch']">KeywordSearch=<xsl:value-of
select="/ProductInfo/Request/Args/Arg[@name='KeywordSearch']/@value"
/></xsl:when>
- </xsl:choose>
- </xsl:variale>
- <!-- Root -->
- <xsl:template match="/">
- <html>
- <xsl:choose>
- <xsl:when test="$MYBOTTOMSTORE='true'"><xsl:call-template
name="MyBottomStore" /></xsl:when>
- <xsl:otherwise>
- <head>
- <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
- <meta HTTP-EQUIV="Expires" CONTENT="-1" />
- <style>
- <xsl:comment>
- body{ text-align:left; background-color: white; font-family:
verdana,sans-serif; font-size: small; color: black; padding: 0px; margin: 10px;
}
- h3{ margin: 4px; }
- hr{ color: #336699; width: 90%; height: 3px; }
- form{ margin: 0px; }
- .header{ width: 100%; font-size: x-small; border: 3px solid #336699;
background-color: white; border-spacing: 3px; }
- .asin_detail{ width: 100%; font-size: x-small; border: 3px solid #336699;
background-color: white; border-spacing: 3px; }
-
- .table2{ width: 100%; font-size: xx-small; border: 3px solid #336699;
background-color: white; border-spacing: 3px; }
-
- .productbox{ width: 100%; font-size: xx-small; border: 3px solid #336699;
background-color: white; border-spacing: 3px; }
-
- .productbox td{ width: 33%; text-align: center; vertical-align: bottom; }
-
- .storefront_main{ width: 100%; font-size: x-small; border: 0px;
background-color: white; border-spacing: 3px; }
-
- .caption1{ padding: 3px; color: white; font-size: small; background-color:
#336699; font-weight: bold; }
-
- .subject{ text-transform: capitalize; padding: 3px; color: white; font-size:
small; background-color: #336699; font-weight: bold; }
-
- .title{ padding: 6px; color: white; font-size: small; background-color:
#336699; font-weight: bold; letter-spacing: 4px; }
-
- .searchboxcaption{ padding: 3px; color: white; font-size: x-small;
background-color: #336699; }
- .buybox{ padding: 3px; color: white; background-color: #336699; }
-
- .pricebox{ padding: 3px; color: white; background-color: white; border: 3px
solid #336699; }
-
- .buybutton{ cursor: hand; width: 100%; margin: 3px; color: white;
background-color: #336699; }
- .searchbutton{ cursor: hand; width: 100%; margin: 3px; color: white;
background-color: #336699; }
- .leftright{ padding-left: 10%; padding-right: 10%; }
- </xsl:comment>
- </style>
- <title><xsl:value-of select="$title"/><xsl:text> - </xsl:text>
- <xsl:choose>
- <xsl:when test="/ProductInfo/Request/Args/Arg[@name='BrowseNodeSearch']">
- <xsl:value-of select="ProductInfo/Details/Catalog"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring-after($SearchType,'=')"/>
- </xsl:otherwise>
- </xsl:choose>
- </title>
- </head>
- <body>
- <xsl:call-template name="Header" />
- <xsl:call-template name="Toolbar" />
- <br />
- <xsl:choose>
- <xsl:when test="$STOREFRONT='true'">
- <xsl:call-template name="StoreFront" />
- </xsl:when>
- <xsl:when test="count(ProductInfo/Details) = 0">
- <div align="center" class="caption1">
- <p>Unable to find exact matches for your search for<br /><br
/><b>"<xsl:value-of select="substring-after($SearchType,'=')"/>"</b><br /><br />
- Please modify your search and try again.</p>
- </div>
- </xsl:when>
- <xsl:when test="/ProductInfo/Request/Args/Arg[@name='AsinSearch']">
- <xsl:apply-templates select="ProductInfo/Details" />
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="AWSSearch" />
- </xsl:otherwise>
- </xsl:choose>
- <br />
- <xsl:call-template name="SearchBox" />
- </body>
- </xsl:otherwise>
- </xsl:choose>
- </html>
- </xsl:template>
- <!-- End Of Root -->
- <!-- Start of Templates -->
- <!--Details-->
- <xsl:template match="Details">
- <span class="caption1"><xsl:apply-templates select="Catalog"/></span>
- <table cols="3" class="asin_detail">
- <tr valign="top"><td colspan="2">
- <h3><xsl:value-of select="ProductName"/></h3>
- </td>
-
- <!--DISPLAY RIGHT SIDE BUY BOX-->
- <td rowspan="2" align="center" width="25%">
- <div class="buybox">
- <b>Ready To Buy?</b>
- <div class="pricebox">
- <xsl:variable name="nOurPrice">
- <xsl:value-of select="translate(OurPrice,',$','')"/>
- </xsl:variale>
- <xsl:variable name="nListPrice">
- <xsl:value-of select="translate(ListPrice,',$','')"/>
- </xsl:variale>
- <xsl:choose>
- <xsl:when test="count(OurPrice) = 0"><p><b style="color:red;">Sorry - Not
Available</b><br /></p></xsl:when>
- <xsl:when test="substring(OurPrice,1,3) = 'Too'"><p><b
style="color:green;">PRICE: </b>Our Unusually Low Price is so low that we can't
show it on this page. To see our price, add this item to your cart. You can
always remove it later.</p></xsl:when>
- <xsl:when test="($nOurPrice >= $nListPrice) or
not(number($nListPrice))"><p><b style="color:green;">Our price: <xsl:value-of
select="OurPrice"/></b><br /></p></xsl:when>
- <xsl:otherwise>
- <p><b style="color:�lack; text-decoration:line-through;">List price:
<xsl:value-of select="ListPrice"/></b><br />
- <b style="color:red;">Our price: <xsl:value-of select="OurPrice"/></b><br />
- <b style="color:green;">THAT'S <xsl:value-of select="100 - round(($nOurPrice
div $nListPrice) * 100)"/><xsl:text>%</xsl:text> OFF!</b></p>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- <xsl:variable name="nAsin"><xsl:value-of select="Asin"/></xsl:variable>
- <form method="POST" target="{$target}"
action="{concat('http://www.amazon.com/o/dt/assoc/handle-buy-box=',$nAsin)}">
- <input type="hidden" name="{concat('asin.', $nAsin)}" value="1"/>
- <input type="hidden" name="tag_value" value="{$associate-id}"/>
- <input type="hidden" name="tag-value" value="{$associate-id}"/>
- <input type="hidden" name="dev-tag-value" value="{$developer-tag}"/>
- <input type="submit" name="submit.add-to-cart" value="Buy At Amazon.com"
title="Buy From Amazon.com" class="buybutton" />
- </form>
- <xsl:variable name="nonostring">'"</xsl:variable>
- <xsl:variable name="product_title"><xsl:value-of
select="translate(ProductName, $nonostring, '')"/></xsl:variable>
- <button class="buybutton" onclick="window.external.AddFavorite('{@url}',
'{$product_title}');" title="No Time? Bookmark it!">Bookmark It!</button><br />
- <form method="GET" target="{$target}" action="{@url}">
- <input type="submit" value="More Product Info?" title="More Product Info
From Amazon.com?" class="buybutton" />
- </form>
- </div>
- </td></tr>
- <!--DISPLAY PRODUCT IMAGE BOX -->
- <tr valign="top"><td align="center" width="20%">
- <a href="{ImageUrlLarge}" target="{$target}" title="Click For Larger Image -
If Available"><img src="{ImageUrlMedium}" border="0" onload="if(this.width=='1')
this.src='http://g-images.amazon.com/images/G/01/books/icons/books-no-image.gif'"/></a>
- </td>
- <!--DISPLAY PRODUCT DETAILS -->
- <td width="55%">
- <xsl:apply-templates select="Authors | Artists | Starring | Directors"/>
- <xsl:apply-templates select="Manufacturer">
- <xsl:with-param name="cat" select="Catalog"/>
- </xsl:apply-templates>
- <xsl:apply-templates select="SalesRank"/>
- <xsl:if test="(Catalog = 'DVD') or (Catalog = 'Video Games') or (Catalog =
'Video') or (Catalog = 'Software') or (Catalog = 'Music') or (Catalog =
'Book')">
- <xsl:apply-templates select="Media"/>
- </xsl:if>
- <xsl:apply-templates select="TheatricalReleaseDate"/>
- <xsl:apply-templates select="ReleaseDate"/>
- <xsl:apply-templates select="Availability"/>
- <xsl:apply-templates select="Platforms"/>
- <xsl:apply-templates select="Features">
- <xsl:with-param name="cat" select="Catalog"/>
- </xsl:apply-templates>
- </td></tr>
- <tr><td colspan="3" height="30"></td></tr>
- <!-- DISPLAY SOUNDTRACKS -->
- <xsl:apply-templates select="Tracks" />
- <!-- DISPLAY REVIEWS -->
- <xsl:apply-templates select="ProductDescription" />
- <xsl:apply-templates select="Reviews/AvgCustomerRating"/>
- <xsl:apply-templates select="Reviews/TotalCustomerReviews"/>
- <xsl:apply-templates select="Reviews/CustomerReview">
- <xsl:sort select="Rating" order="descending"/>
- </xsl:apply-templates>
- <!-- DISPLAY ACCESSORIES / SIMILAR ITEMS IMAGES -->
- <tr><td colspan="3" align="center">
- <xsl:apply-templates select="Accessories"/>
- <xsl:apply-templates select="SimilarProducts">
- <xsl:with-param name="Asin" select="Asin"/>
- </xsl:apply-templates>
- <!-- DISPLAY BROWSENODE LIST -->
- <xsl:apply-templates select="BrowseList"/>
- </td></tr>
- <tr><td colspan="3" height="30"></td></tr>
- <tr><td colspan="3" align="center">
- <div class="title"><xsl:value-of select="$title" /></div>
- </td></tr>
- </table>
- </xsl:template>
- <!--END OF DETAIL TEMPLATE-->
- <!--STOREFRONT TEMPLATE-->
- <!--Modify-->
- <xsl:template name="StoreFront">
- <xsl:variable name="stub2" select="concat($AWSversion, 't=',$associate-id,
'&dev-t=',$developer-tag,'&page=1&type=lite&sort=+salesrank&f=',$template-url,'&')"
/>
- <table cols="2" class="storefront_main">
- <tr valign="top">
- <!--Start Left Column -->
- <td width="25%">
- <table class="table2">
- <tr>
- <td valign="top" align="center">
- <div class="caption1">Culture</div><br />
- <p><a title="Celtic Christianity" href="{$stub2}PowerSearch=subject:celtic
church&mode=books">Celtic Christianity</a><br /></p>
- <p><a title="Celtic Saints" href="{$stub2}PowerSearch=subject:Christian
saints, Celtic&mode=books">Celtic Saints</a><br /></p>
- <p><a title="Celtic Religions"
href="{$stub2}PowerSearch=subject:Spirituality - Celtic&mode=books">Celtic
Religion</a><br /></p>
- <p><a title="Celtic Art" href="{$stub2}PowerSearch=subject:Decoration and
ornament, Celti&mode=books">Celtic Ornamentation</a><br /></p>
- <p><a title="Celtic Mythology"
href="{$stub2}PowerSearch=subject:Mythology&mode=books">Celtic
Mythology</a><br /></p>
- <p><a title="Celtic Music"
href="{$stub2}BrowseNodeSearch=63760&mode=music">Celtic Music</a><br /></p>
- <p><a title="Celtic Dance" href="{$stub2}KeywordSearch=Celtic
Dance&mode=books">Celtic Dance</a><br /></p>
- <p><a title="Celtic Civilization"
href="{$stub2}PowerSearch=subject:Civilization,%20Celtic&mode=books">Celtic
Civilization</a><br /></p>
- <p><a title="Celtic Language" href="{$stub2}PowerSearch=subject:Celtic
Languages&mode=books">Celtic Language</a><br /></p>
- <br /><div class="caption1">Food</div><br />
- <p><a title="Ireland"
href="{$stub2}BrowseNodeSearch=4284&mode=books">Ireland</a><br /></p>
- <p><a title="British, Scottish, Welsh"
href="{$stub2}BrowseNodeSearch=4276&mode=books">British Isles</a><br /></p>
- <br /><div class="caption1">History</div><br />
- <p><a title="History of Scotland" href="{$stub2}PowerSearch=subject:Europe -
Great Britain - Scotland&mode=ooks">Scotland</a><br /></p>
- <p><a title="History of Ireland" href="{$stub2}PowerSearch=subject:Ireland -
History&mode=books">Ireland</a><br /></p>
- <p><a title="Medieval Ireland"
href="{$stub2}BrowseNodeSearch=465214&mode=books">Medieval Ireland</a><br
/></p>
- <p><a title="History of Wales"
href="{$stub2}BrowseNodeSearch=4982&mode=books">Wales</a><br /></p>
- <p><a title="Medieval England"
href="{$stub2}BrowseNodeSearch=465192&mode=books">Medieval England</a><br
/></p>
- <p><a title="Ancient England"
href="{$stub2}BrowseNodeSearch=465182&mode=books">Ancient England</a><br
/></p>
- <br /><div class="caption1">Travel</div><br />
- <p><a title="Travel To Scotland"
href="{$stub2}KeywordSearch=Travel%20to%20Scotland&mode=books">Scotland</a><br
/></p>
- <p><a title="Travel To Ireland"
href="{$stub2}KeywordSearch=Travel%20to%20Ireland&mode=books">Ireland</a><br
/></p>
- <p><a title="Travel To Wales"
href="{$stub2}KeywordSearch=Travel%20to%20Wales&mode=books">Wales</a><br
/></p>
- <p><a title="Travel To England"
href="{$stub2}PowerSearch=subject:Europe%20-%20Gt.%20Britain/England&mode=books">England</a><br
/></p>
- <br /><br /><br /><�r /></td></tr></table>
- </td>
- <!--Start Center Column -->
- <td align="center"><xsl:call-template name="AWSSearch" /></td>
- </tr>
- </table>
- </xsl:template>
- <!--Process all non ASIN Searches-->
- <xsl:template name="AWSSearch">
- <table cols="3" class="productbox">
- <tr><td colspan="3" align="center">
- <div class="subject">
- <xsl:choose>
- <xsl:when test="/ProductInfo/Request/Args/Arg[@name='BrowseNodeSearch']">
- <xsl:value-of select="ProductInfo/Details/Catalog"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="substring-after($SearchType,'=')"/>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </td></tr>
- <tr height="20"><td colspan="3" height="20"></td></tr>
- <xsl:for-each select="ProductInfo/Details">
- <xsl:sort select="(count(Availability) = 0) or substring(Availability,1,7) =
'Usually' or substring(Availability,1,13) ='In stock soon' or
substring(Availability,1,7)='Not yet' or substring(Availability,1,13)='Special
Order'" order="descending"/>
- <xsl:if test="position() mod 3 = 1">
- <xsl:text disable-output-escaping="yes"><</xsl:text>tr<xsl:text
disable-output-escaping="yes">></xsl:text>
- </xsl:if>
- <xsl:call-template name="Cell"><xsl:with-param name="t"
select="'_self'"/></xsl:call-template>
- <xsl:if test="position() mod 3 = 0 or position() = last()">
- <xsl:text disable-output-escaping="yes"><</xsl:text>/tr<xsl:text
disable-output-escaping="yes">></xsl:text>
- <tr height="20"><td colspan="3" height="20"></td></tr>
- </xsl:if>
- </xsl:for-each>
- <tr><td colspan="3" align="center">
- <div class="title"><xsl:value-of select="$title" /></div>
- </td></tr>
- </table>
- </xsl:template>
- <xsl:template name="Cell">
- <xsl:param name="t"/>
- <xsl:if test="(count(Availability) = 0) or substring(Availability,1,7) =
'Usually' or substring(Availability,1,13) ='In stock soon' or
substring(Availability,1,7)='Not yet' or substring(Availability,1,13)='Special
Order'">
- <xsl:variable name="product_title" select="ProductName"/>
- <xsl:variable name="product_title2">
- <xsl:choose>
- <xsl:when test="substring-before(translate(ProductName,':(','**'),'*') =
''">
- <xsl:value-of select="$product_title"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of
select="substring-before(translate(ProductName,':(','**'),'*')"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variale>
- <td height="200px">
- <a target="{$t}"
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&AsinSearch={Asin}&type=heavy&f={$template-url}"><img
title="{$product_title}" src="{ImageUrlMedium}" vspace="10" border="0"
onload="if(this.width=='1')
this.src='http://g-images.amazon.com/images/G/01/books/icons/books-no-image.gif'"/></a>
- <br />
- <xsl:if test="count(OurPrice) != 0">
- Buy New: <font color="#990000"><xsl:value-of select="OurPrice"/></font><br
/>
- </xsl:if>
- <a target="{$t}"
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&AsinSearch={Asin}&type=heavy&f={$template-url}"
title="{$product_title}"><xsl:value-of select="substring($product_title2,1,60)"
disable-output-escaping="yes" /></a>
- </td>
- </xsl:if>
- </xsl:template>
- <!--Header of Page-->
- <xsl:template name="Header">
- <table class="header">
- <tr><td align="center" width="60%"><div class="title"><xsl:value-of
select="$title" /></div></td>
- <td rowspan="2">
- <!--Amazon.com Bookmark (Adapt to your site) -->
- <a href="http://www.amazon.com/exec/obidos/redirect-home/{$associate-id}">
- <img
onclick="window.external.AddFavorite('http://www.amazon.com/exec/obidos/redirect-home/{$associate-id}','Amazon.com');"
src="http://g-images.amazon.com/images/G/01/associates/navbar2000/logo-no-border(1).gif"
border="0" title="{$bookmarktitle}" height="43" width="148"/></a>
- <img src="{$image-url}amazon-webservices3.jpg"/>
- <!--XSLT Tracking Code = (Remove) -->
- <script language="JavaScript"
src="http://celtic-one-design.com/js/tracker.js"></script>
- </td></tr>
- <tr><td align="center"><div class="title">In Association with ...</div></td>
- </tr></table>
- </xsl:template>
- <!--SearchBox-->
- <xsl:template name="SearchBox">
- <form name="myform" onsubmit="return false">
- <table cols="4" class="table2">
- <tr><td align="center" colspan="4">
- <h3 style="letter-spacing: 6pt">Amazon Products Search</h3>
- </td></tr>
- <tr><td width="30%" align="center"><div class="searchboxcaption">Search
Type<br />
- <select name="advSearch">
- <option value="KeywordSearch" selected="">Keyword Search</option>
- <option value="ActorSearch">Actor Search</option>
- <option value="DirectorSearch">Director Search</option>
- <option value="ArtistSearch">Band/Artist Search</option>
- <option value="AuthorSearch">Author Search</option>
- <option value="AsinSearch">ISBN Search</option>
- <option value="UpcSearch">UPC Search (CDs Only)</option>
- <option value="ManufacturerSearch">Manufacturer</option>
- </select></div></td>
- <td width="30%" align="center"><div class="searchboxcaption">Search Term<br
/>
- <input maxLength="256" name="searchterm" size="20" /></div></td>
- <td width="30%" align="center"><div class="searchboxcaption">Product Type<br
/>
- <select name="mode">
- <option value="books" selected="">Books</option>
- <option value="magazines">... Magazines</option>
- <option value="video">All Movies</option>
- <option value="dvd">... DVD Only</option>
- <option value="vhs">... VHS Only</option>
- <option value="music">Music</option>
- <option value="electronics">Electronics</option>
- <option value="pc-hardware">... Computers</option>
- <option value="software">... ... Software</option>
- <option value="photo">... Camera & Photo</option>
- <option value="toys">Toys & Games</option>
- <option value="videogames">... Video Games</option>
- <option value="garden">Outdoor Living</option>
- <option value="kitchen">Kitchen & Housewares</option>
- <option value="tools">Tools & Hardware</option>
- <option value="baby">Baby</option>
- </select></div></td>
- <td width="10%" align="center">
- <input title="Click To Search" class="searchbutton"
onclick="window.location.href='{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&'
+ myform.advSearch.value + '=' + myform.searchterm.value +
'&page=1&mode='+ myform.mode.value +
'&type=lite&sort=+salesrank&f={$template-url}'; return false"
type="button" value="Search" />
- </td></tr>
- <tr><td colspan="4" align="center">
- <font color="red"><�>Amazon.com prices are subject to change.</b></font>
- <br /><br />
- Amazon XSL Explorer v108 © 2002 - 2003 by <a
href="http://celtic-one-design.com/amazon_associate_scripts.htm"
target="_top">CelticOneDesign</a>
- </td></tr>
- </table>
- </form>
- </xsl:template>
- <!--Total Pages-->
- <xsl:template match="TotalPages">
- <xsl:if test="$PAGE != 1">
- <a
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&{$SearchType}&page={$PAGE
-1}&mode={$MODE}&type=lite&sort={$SORT}&f={$template-url}"><<
Previous</a>
- <xsl:text> - </xsl:text>
- </xsl:if>
- PAGE <xsl:value-of select="$PAGE"/> OF <xsl:value-of select="." />
- <xsl:if test="$PAGE != .">
- <xsl:text> - </xsl:text>
- <a
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&{$SearchType}&page={$PAGE
+1}&mode={$MODE}&type=lite&sort={$SORT}&f={$template-url}">Next
>></a>
- </xsl:if>
- </xsl:template>
- <xsl:template name="Toolbar">
- <table class="table2">
- <tr valign="middle">
- <td width="40%" align="left">
- <a
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&KeywordSearch=Celtic
Art&page=1&mode=books&type=lite&f={$template-url}&storefront=true"
title="Go To Store Home">Store Front</a>
- <xsl:text> | </xsl:text>
- <a
href="http://www.amazon.com/exec/obidos/redirect?tag={$associate-id}&path=shopping-basket"
target="{$target}" title="View Your Amazon.com Cart">View Cart</a>
- <xsl:text> | </xsl:text>
- <a
href="http://www.amazon.com/exec/obidos/redirect?tag={$associate-id}&path=account-access-login"
target="{$target}">View your Amazon Account</a>
- </td>
- <td align="center">
- <xsl:variable name="stub" select="concat($AWSversion, 't=',$associate-id,
'&dev-t=',$developer-tag,'&page=1&type=lite&sort=+salesrank&f=',$template-url,'&BrowseNodeSearch=')"
/>
- <select style="margin:0 ; padding: 0;" name="search"
onChange="location=this.options[this.selectedIndex].value">
- <option selected="" value="">Browse Amazon</option>
- <option value="{$stub}53&mode=books">Books</option>
- <option value="{$stub}599872&mode=magazines">...Magazines</option>
- <option value="{$stub}404272&mode=video">All Movies</option>
- <option value="{$stub}130&mode=dvd">...DVD</option>
- <option value="{$stub}404272&mode=vhs">...VHS</option>
- <option value="{$stub}301668&mode=music">Music</option>
- <option value="{$stub}172282&mode=electronics">Electronics</option>
- <option value="{$stub}565118&mode=pc-hardware">...Computers</option>
- <option value="{$stub}491286&mode=software">... ...Software</option>
- <option value="{$stub}502394&mode=photo">...Camera & Photo</option>
- <option value="{$stub}491290&mode=toys">Toys & Games</option>
- <option value="{$stub}471280&mode=videogames">...Video Games</option>
- <option value="{$stub}468250&mode=garden">Outdoor</option>
- <option value="{$stub}491864&mode=kitchen">Kitchen &
Housewares</option>
- <option value="{$stub}468240&mode=tools">Tools & Hardware</option>
- <option value="{$stub}542456&mode=baby">Baby</option>
- </select>
- </td>
- <td width="33%" align="right">
- <xsl:apply-templates select="/ProductInfo/TotalPages" />
- </td></tr></table>
- </xsl:template>
-
- <xsl:template match="SalesRank">
- <b>Sales Rank: </b><xsl:value-of select="."/><br />
- </xsl:template>
- <xsl:template match="Media">
- <b>Media: </b><xsl:value-of select="."/><br />
- </xsl:template>
- <xsl:template match="Catalog">
- <xsl:text> - </xsl:text>Amazon <xsl:value-of select="."/> Catalog<xsl:text>
- </xsl:text>
- </xsl:template>
- <xsl:template match="ReleaseDate">
- <b>Release Date: </�><xsl:value-of select="."/><br />
- </xsl:template>
- <xsl:template match="TheatricalReleaseDate">
- <b>Theatrical Release Date: </b><xsl:value-of select="."/><br />
- </xsl:template>
- <xsl:template match="Availability">
- <b>Availability: </�><xsl:value-of select="."/>
- <xsl:if test="(substring(.,1,13)='Special Order')">. Please note that
special order titles occasionally go out of stock.<xsl:text> </xsl:text>
- <xsl:if test="../Catalog = 'Book'">These hard-to-find titles are not
discounted and are subject to <a
href="http://www.amazon.com/exec/obidos/redirect?tag={$associate-id}&path=tg/browse/-/510066/"
target="{$target}">an additional charge of $1.99 per item</a> due to the extra
cost of ordering them.<xsl:text> </xsl:text></xsl:if>
- Amazon.com will notify you within 2-4 weeks if they have trouble obtaining
this title.</xsl:if>
- <xsl:if test="(substring(.,1,7)='Not yet')">. You may order it now and we
will ship it to you when it arrives.</xsl:if>
- <br />
- </xsl:template>
- <xsl:template match="Platforms">
- <ul type="disc"><b>Platforms</b>
- <xsl:for-each select="Platform"><li /><xsl:value-of
select="."/></xsl:for-each>
- </ul>
- </xsl:template>
- <xsl:template match="Tracks">
- <tr><td colspan="3">
- <h3>Tracks</h3>
- <ol>
- <xsl:for-each select="Track"><li /><xsl:value-of select="."/></xsl:for-each>
- </ol>
- </td></tr>
- </xsl:template>
- <xsl:template match="Accessories">
- <h3>Accessories</h3><hr />
- <xsl:for-each select="Accessory">
- <a
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&AsinSearch={current()}&type=heavy&f={$template-url}">
- <img title="Click to View More Information For This Accessory"
src="http://images.amazon.com/images/P/{current()}.01.MZZZZZZZ.jpg" border="0"
/></a>
- </xsl:for-each>
- <hr />
- <br />
- </xsl:template>
- <xsl:template match="SimilarProducts">
- <xsl:param name="Asin"/>
- <h3>Customers who shopped for this item also shopped for these items:</h3>
- <hr />
- <xsl:for-each select="Product">
- <a
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&AsinSearch={current()}&type=heavy&f={$template-url}">
- <img title="Click to Explore This Similar Item"
src="http://images.amazon.com/images/P/{current()}.01.MZZZZZZZ.jpg" border="0"
/></a>
- </xsl:for-each>
- <hr />
- <p><br /><b><a
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&SimilaritySearch={$Asin}&type=lite&sort=+salesrank&f={$template-url}">Explore
Similar Items?</a></b><br /></p>
- </xsl:template>
- <xsl:template match="Features">
- <xsl:param name="cat"/>
- <ul type="disc"><b>Features</b>
- <xsl:for-each select="Feature"><li /><xsl:value-of
select="."/></xsl:for-each>
- <xsl:if test="($cat = 'DVD') or ($cat = 'Video Games') or ($cat = 'Video')
or ($cat = 'Software') or ($cat = 'Music') or ($cat = 'Book')">
- <xsl:if test="count(../MpaaRating) != 0"><li />Rating: <xsl:value-of
select="../MpaaRating"/><br /></xsl:if>
- <xsl:if test="count(../NumMedia) != 0"><li />Number in set: <xsl:value-of
select="../NumMedia"/><br /></xsl:if>
- </xsl:if></ul>
- </xsl:template>
- <xsl:template match="BrowseList">
- <xsl:variable name="nonostring">'":&#()</xsl:variable>
- <xsl:if test="../Catalog = 'Book'">
- <br />
- <h3>Browse the bestselling at Amazon.com by related subject:</h3>
- <hr />
- <xsl:for-each select="BrowseNode"><xsl:for-each select="BrowseName">
- <xsl:variable name="subject">
- <xsl:value-of select="translate(current(), $nonostring, '')"/>
- </xsl:variale>
- <a
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&PowerSearch=subject:{$subject}&page=1&mode=books&type=lite&sort=+salesrank&f={$template-url}">
- <xsl:value-of select="."/></a><br />
- </xsl:for-each></xsl:for-each>
- <hr />
- </xsl:if>
- </xsl:template>
- <xsl:template match="Authors | Artists | Starring | Directors">
- <xsl:choose>
- <xsl:when test="name() = 'Authors'"><b>By: </b>
- <xsl:for-each select="Author">
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="search" select="'AuthorSearch'"/>
- <xsl:with-param name="mode" select="'books'"/>
- </xsl:call-template>
- </xsl:for-each></xsl:when>
- <xsl:when test="name() = 'Artists'"><b>Artist: </b>
- <xsl:for-each select="Artist">
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="search" select="'ArtistSearch'"/>
- <xsl:with-param name="mode" select="'music'"/>
- </xsl:call-template>
- </xsl:for-each></xsl:when>
- <xsl:when test="name() = 'Starring'"><b>Starring: </b>
- <xsl:for-each select="Actor">
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="search" select="'ActorSearch'"/>
- <xsl:with-param name="mode" select="'video'"/>
- </xsl:call-template>
- </xsl:for-each></xsl:when>
- <xsl:when test="name() = 'Directors'"><b>Director: </b>
- <xsl:for-each select="Director">
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="search" select="'DirectorSearch'"/>
- <xsl:with-param name="mode" select="'video'"/>
- </xsl:call-template>
- </xsl:for-each></xsl:when>
- </xsl:choose><br />
- </xsl:template>
- <xsl:template match="Manufacturer">
- <xsl:param name="cat"/>
- <xsl:choose>
- <xsl:when test="$cat = 'Music'"><b>Label: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'music'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Electronics'"><b>Manufacturer: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'electronics'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Book'"><b>Publisher: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'books'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Magazine'"><b>Publisher: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'magazine'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="($cat = 'DVD') or ($cat = 'Video')"><b>Studio: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'video'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Software'"><b>By: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'software'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Personal Computer'"><b>Manufacturer: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'pc-hardware'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Home Improvement'"><b>Manufacturer: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'tools'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Toy'"><b>Manufacturer: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'toys'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Video Games'"><b>By: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'videogames'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Baby Product'"><b>Manufacturer: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'baby'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Kitchen'"><b>Manufacturer: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'kitchen'"/>
- </xsl:call-template></xsl:when>
- <xsl:when test="$cat = 'Lawn & Patio'"><b>Manufacturer: </b>
- <xsl:call-template name="aws-search">
- <xsl:with-param name="searchstring" select="."/>
- <xsl:with-param name="mode" select="'garden'"/>
- </xsl:call-template></xsl:when>
- <xsl:otherwise><b>By: </b><xsl:value-of select="."/></xsl:otherwise>
- </xsl:choose><br />
- </xsl:template>
- <xsl:template name="aws-search">
- <xsl:param name="searchstring"/>
- <xsl:param name="search" select="'ManufacturerSearch'"/>
- <xsl:param name="mode"/>
- <a
href="{$AWSversion}t={$associate-id}&dev-t={$developer-tag}&{$search}={$searchstring}&page=1&mode={$mode}&type=lite&sort=+salesrank&f={$template-url}">
- <xsl:value-of select="($searchstring)"/></a>
- <xsl:if test="position() != last() and not(position() = last()-1)">,
</xsl:if>
- <xsl:if test="position() = last()-1"> and </xsl:if>
- </xsl:template>
- <xsl:template match="ProductDescription">
- <tr><td colspan="3">
- <h3>Amazon Product Review</h3>
- </td></tr>
- <tr><td colspan="3">
- <div class="leftright">
- <xsl:value-of select="." disable-output-escaping="yes" />
- <br /><br /></div>
- </td></tr>
- </xsl:template>
- <xsl:template match="AvgCustomerRating">
- <xsl:if test=". > 0">
- <tr><td colspan="3">
- <h3>Customer Reviews</h3>
- <b>Average customer rating: </b>
- <xsl:call-template name="Stars">
- <xsl:with-param name="average" select="."/>
- </xsl:call-template><br />
- </td></tr>
- </xsl:if>
- </xsl:template>
- <xsl:template match="TotalCustomerReviews">
- <xsl:if test=". > 0">
- <tr><td colspan="3">
- <b>Total Customer Reviews: </b>
- <xsl:value-of select="." />
- <br /><br />
- </td></tr>
- </xsl:if>
- </xsl:template>
- <xsl:template match="CustomerReview">
- <tr><td colspan="3" class="leftright">
- <xsl:call-template name="Stars">
- <xsl:with-param name="average" select="Rating"/>
- </xsl:call-template>
- <b><xsl:value-of select="Summary"/></b><br />
- </td></tr>
- <tr><td colspan="3">
- <div class="leftright">
- <xsl:value-of select="Comment" disable-output-escaping="yes" />
- <br /><br />
- </div></td></tr>
- </xsl:template>
- <xsl:template name="Stars">
- <xsl:param name="average" select="5"/>
- <xsl:variable name="thisurl"
select="'http://g-images.amazon.com/images/G/01/detail/stars-'"/>
- <xsl:choose>
- <xsl:when test="$average > 4.75"><img
src="{$thisurl}5-0.gif"/></xsl:when>
- <xsl:when test="$average > 4.25"><img
src="{$thisurl}4-5.gif"/></xsl:when>
- <xsl:when test="$average > 3.75"><img
src="{$thisurl}4-0.gif"/></xsl:when>
- <xsl:when test="$average > 3.25"><img
src="{$thisurl}3-5.gif"/></xsl:when>
- <xsl:when test="$average > 2.75"><img
src="{$thisurl}3-0.gif"/></xsl:when>
- <xsl:when test="$average > 2.25"><img
src="{$thisurl}2-5.gif"/></xsl:when>
- <xsl:when test="$average > 1.75"><img
src="{$thisurl}2-0.gif"/></xsl:when>
- <xsl:when test="$average > 1.25"><img
src="{$thisurl}1-5.gif"/></xsl:when>
- <xsl:when test="$average > .75"><img src="{$thisurl}1-0.gif"/></xsl:when>
- <xsl:when test="$average > .25"><img src="{$thisurl}0-5.gif"/></xsl:when>
- <xsl:otherwise><img src="{$image-url}stars-0-5.gif"/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <!-- MyBottomStore Template -->
- <xsl:template name="MyBottomStore">
- <head>
- <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
- <meta HTTP-EQUIV="Expires" CONTENT="-1" />
- <style>
- <xsl:comment>
- a:link {color: blue;}
- a:visited {color: black; text-decoration: none;}
- body{ background-color: transparent; font-family: Verdana; color: black;
margin: 0px; padding: 0px; }
- .box{ width: 738px; font-family: Verdana; border: 4px solid #336699;
background-color: #336699; border-spacing: 0px; }
-
- .productbox{ width: 738px; font-family: Verdana; border: 4px solid #336699;
background-color: white; border-spacing: 2px; font-size: xx-small; }
-
- .productbox td{ width: 20%; text-align: center; vertical-align: bottom; }
-
- .byline{ width: 738px; font-family: Verdana; border: 4px solid #336699;
- background-color: #336699; border-spacing: 0px; font-size: xx-small; }
-
- .byline a:link { color: white; }
-
- .byline a:visited { color: white; text-decoration: none; }
-
- .header{ color: white; line-height: 150%; margin-top: 0px; margin-bottom:
0px; text-align: center; }
- </xsl:comment>
- </style>
- </head>
- <body>
- <xsl:if test="count(ProductInfo/Details) != 0 and
count(ProductInfo/ErrorMsg) != 1">
- <table class="box">
- <tr><th><p class="header">
- Related Resources From Amazon</p></th></tr></table>
- <table class="productbox">
- <tr height="10"><td colspan="5" height="10"></td></tr>
- <xsl:for-each select="ProductInfo/Details">
- <xsl:sort select="(count(Availability) = 0) or substring(Availability,1,7) =
'Usually' or substring(Availability,1,13) ='In stock soon' or
substring(Availability,1,7)='Not yet' or substring(Availability,1,13)='Special
Order'" order="descending"/>
- <xsl:if test="position() mod 5 = 1">
- <xsl:text disable-output-escaping="yes"><</xsl:text>tr<xsl:text
disable-output-escaping="yes">></xsl:text>
- </xsl:if>
- <xsl:call-template name="Cell"><xsl:with-param name="t"
select="'_blank'"/></xsl:call-template>
- <xsl:if test="position() mod 5 = 0 or position() = last()">
- <xsl:text disable-output-escaping="yes"><</xsl:text>/tr<xsl:text
disable-output-escaping="yes">></xsl:text>
- <tr height="10"><td colspan="5" height="10"></td></tr>
- </xsl:if>
- </xsl:for-each>
- </table>
- <table class="byline">
- <tr><td align="right">
- <a href="http://celtic-one-design.com/amazon_associate_scripts.htm"
target="page"> Amazon XSL Explorer © 2002 - 2003 by .:COD:.</a>
- </td></tr></table>
- </xsl:if>
- </body>
- </xsl:template>
- </xsl:stylesheet>
|