Sha256: 9a5ac9e78e9e73bd8120508323233587a7c76f226241a3a090178644aa0b5f64

Contents?: true

Size: 1.62 KB

Versions: 76

Compression:

Stored size: 1.62 KB

Contents

<?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/2009-07-01">
  
  <xsl:output method="xml"/>
  
  <xsl:template match="/">
    <rss version="2.0">
      <channel>
        <xsl:apply-templates select="aws:ListLookupResponse/aws:Lists/aws:List" />
      </channel>
    </rss>
  </xsl:template>
  
  <xsl:template match="aws:List">
    <title>WishList for <xsl:value-of select="aws:CustomerName" /></title>
    <link><xsl:value-of select="aws:ListURL"/></link>
    <xsl:apply-templates select="aws:ListItem"/>
  </xsl:template>
  
  <xsl:template match="aws:ListItem">
      <item>
        <title><xsl:value-of select="aws:Item/aws:ItemAttributes/aws:Title" /></title>
        <link><xsl:value-of select="aws:Item/aws:DetailPageURL" /></link>
        <description>
          <p>Author: <xsl:value-of select="aws:Item/aws:ItemAttributes/aws:Author" /></p>
          <p>ISBN: <xsl:value-of select="aws:Item/aws:ItemAttributes/aws:ISBN" /></p>
          <p>List Price: <xsl:value-of select="aws:Item/aws:ItemAttributes/aws:ListPrice/aws:FormattedPrice" /></p>
          <p>Price: <xsl:value-of select="aws:Item/aws:OfferSummary/aws:LowestNewPrice/aws:FormattedPrice"/></p>
          <xsl:apply-templates select="aws:Item/aws:ItemLinks/aws:ItemLink"/>
        </description>
        <guid><xsl:value-of select="aws:Item/aws:DetailPageURL" /></guid>
      </item>
  </xsl:template>
  
  <xsl:template match="aws:ItemLink">
    <a href="{aws:URL}"><xsl:value-of select="aws:Description" /></a>
  </xsl:template>
  
</xsl:stylesheet>

Version data entries

76 entries across 54 versions & 4 rubygems

Version Path
muck-services-3.3.3 test/public/ecs_to_rss-wishlist.xslt
river-3.0.0 public/ecs_to_rss-wishlist.xslt
overlord-0.1.22 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.21 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.20 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.19 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.18 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.17 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.16 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.15 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.14 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.13 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.12 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.11 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.10 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.9 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.8 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.7 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.6 test/rails_root/public/ecs_to_rss-wishlist.xslt
overlord-0.1.5 test/rails_root/public/ecs_to_rss-wishlist.xslt