Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsReverse sort order of a feedReverse sort order of a feed
Previous
 
Next
New Post
2/22/2012 11:23 AM
 

ok, so I'm resurecting this old post because it still seems to be an issue.

What I'm trying to do is pull events from the DNN event module accross to a completely different site.  I've got the RSS feed coming into the newsmodule, but the data is defaulting to date in descending order.  I *thought* that I could just add;

 < xsl:sort select="pubDate" order="ascending"/>

right after the

< xsl:for-each select="channel/item[position()&lt;=$ItemsToShow or $ItemsToShow&lt;1]">

and it would reverse the sort (default is ascending order) but that doens't appear to work and I get the dreaded "could not be loaded. Error: Download error (XSLT compile error.)" error which tells me nuthing.

Is there anyway to get this to work?

 
New Post
6/12/2012 10:41 AM
 

The following edit to the default xslt worked for me. remove the position filter from the initial foreach, reverse the order of the nodes, do an 'if' with the original position filter on the current context node set or whatever it's called. xsl is not my forte...

(spaces added for scrubber engine)

< xsl:for-each select="channel/item" >
  < xsl:sort select="position()" data-type="number" order="descending" / >
     < xsl:if test="position()&lt;=$ItemsToShow or $ItemsToShow&lt;1" > 

 
New Post
7/3/2012 4:12 PM
 

Thanks Brian for this. It works when used outside of the RSS News module, but not within it. Were you able to get it to work?

You can try this here: http://xslttest.appspot.com/
Use the following:

Here is the XML (or to try this in the module itself, the RSS URL is: http://www.amazon.com/gp/rss/movers-and-shakers/movies-tv/ref=zg_bsms_movies-tv_rsslink?tag=thedycom-20

<?xml version="1.0" encoding="utf-16"?><rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="2.0"><channel><copyright>Copyright 2012, Amazon.com</copyright><description>The bestselling new &amp; future releases on Amazon.com (Updated hourly) Note: Product prices and availability were accurate at the time this feed was generated but are subject to change.</description><generator>Amazon Community RSS 2.0</generator><lastBuildDate>Tue, 3 Jul 2012 19:47:22 GMT</lastBuildDate><link>http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_c?ie=UTF8&amp;tag=thedycom-20</link><ttl>60</ttl><title>Amazon.com: Hot New Releases</title><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><language>en-us</language><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/Mirror/dp/B008H0R1D4/ref=pd_zg_rss_nr_d_dvd_1?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51MEjUIwyUL._SL160_.jpg" alt="Mirror Mirror" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/Mirror/dp/B008H0R1D4/ref=pd_zg_rss_nr_d_dvd_1?ie=UTF8&amp;tag=thedycom-20"&gt;Mirror, Mirror&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;&lt;b&gt;Amazon Instant Video&lt;/b&gt; ~ Mike Rohl&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Mirror/dp/B008H0R1D4/ref=pd_zg_rss_nr_d_dvd_1?ie=UTF8&amp;tag=thedycom-20"&gt;Download:&lt;/a&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$1.99&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_1?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B008H0R1D4</guid><link>         http://www.amazon.com/Mirror/dp/B008H0R1D4/ref=pd_zg_rss_nr_d_dvd_1?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#1: Mirror, Mirror</title></item><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/Temporary-Shrinkage/dp/B008GQVPKO/ref=pd_zg_rss_nr_d_dvd_2?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51qNY3D4ANL._SL160_.jpg" alt="Temporary Shrinkage" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/Temporary-Shrinkage/dp/B008GQVPKO/ref=pd_zg_rss_nr_d_dvd_2?ie=UTF8&amp;tag=thedycom-20"&gt;Temporary Shrinkage&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;&lt;b&gt;Amazon Instant Video&lt;/b&gt; ~ Rebecca Toth Diefenbach&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Temporary-Shrinkage/dp/B008GQVPKO/ref=pd_zg_rss_nr_d_dvd_2?ie=UTF8&amp;tag=thedycom-20"&gt;Download:&lt;/a&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$1.99&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_2?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B008GQVPKO</guid><link>         http://www.amazon.com/Temporary-Shrinkage/dp/B008GQVPKO/ref=pd_zg_rss_nr_d_dvd_2?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#2: Temporary Shrinkage</title></item><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/Sherlock-Holmes-Shadows-Blu-ray-UltraViolet/dp/B007K3JCAE/ref=pd_zg_rss_nr_d_dvd_3?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51Mrh7SCm5L._SL160_.jpg" alt="Sherlock Holmes" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/Sherlock-Holmes-Shadows-Blu-ray-UltraViolet/dp/B007K3JCAE/ref=pd_zg_rss_nr_d_dvd_3?ie=UTF8&amp;tag=thedycom-20"&gt;Sherlock Holmes: A Game of Shadows (Blu-ray/DVD Combo + UltraViolet Digital Copy)&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;Robert Downey Jr. &lt;span class="byLinePipe"&gt;(Actor)&lt;/span&gt;, Jude Law &lt;span class="byLinePipe"&gt;(Actor)&lt;/span&gt;, Guy Ritchie &lt;span class="byLinePipe"&gt;(Director)&lt;/span&gt; &lt;span class="byLinePipe"&gt;|&lt;/span&gt; &lt;span class="byLinePipe"&gt;Format:&lt;/span&gt; Blu-ray&lt;/span&gt; &lt;br /&gt; &lt;img src="http://g-ecx.images-amazon.com/images/G/01/detail/stars-3-5._V192261419_.gif" width="64" alt="3.3 out of 5 stars" align="absbottom" height="12" border="0" style="margin: 0; padding: 0;"/&gt;(185)&lt;br /&gt;&lt;span class="riRssReleaseDate"&gt;Release Date: June 12, 2012 &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Sherlock-Holmes-Shadows-Blu-ray-UltraViolet/dp/B007K3JCAE/ref=pd_zg_rss_nr_d_dvd_3?ie=UTF8&amp;tag=thedycom-20"&gt;Buy new:&lt;/a&gt; &lt;strike&gt;$35.99&lt;/strike&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$14.99&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;a href="http://www.amazon.com/gp/offer-listing/B007K3JCAE/ref=pd_zg_rss_nr_d_dvd_3?ie=UTF8&amp;tag=thedycom-20&amp;condition=all"&gt;60 used &amp; new&lt;/a&gt; from &lt;span class="price"&gt;$11.76&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_3?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B007K3JCAE</guid><link>         http://www.amazon.com/Sherlock-Holmes-Shadows-Blu-ray-UltraViolet/dp/B007K3JCAE/ref=pd_zg_rss_nr_d_dvd_3?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#3: Sherlock Holmes: A Game of Shadows (Blu-ray/DVD Combo + UltraViolet Digital Copy)</title></item><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/Young-Bloods/dp/B008GPME28/ref=pd_zg_rss_nr_d_dvd_4?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51EGElRpssL._SL160_.jpg" alt="Young Bloods" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/Young-Bloods/dp/B008GPME28/ref=pd_zg_rss_nr_d_dvd_4?ie=UTF8&amp;tag=thedycom-20"&gt;Young Bloods&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;&lt;b&gt;Amazon Instant Video&lt;/b&gt; ~ TNT&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Young-Bloods/dp/B008GPME28/ref=pd_zg_rss_nr_d_dvd_4?ie=UTF8&amp;tag=thedycom-20"&gt;Download:&lt;/a&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$1.99&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_4?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B008GPME28</guid><link>         http://www.amazon.com/Young-Bloods/dp/B008GPME28/ref=pd_zg_rss_nr_d_dvd_4?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#4: Young Bloods</title></item><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/The-Cool-Girls/dp/B008H0QKUO/ref=pd_zg_rss_nr_d_dvd_5?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51Hn2M80aQL._SL160_.jpg" alt="The Cool" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/The-Cool-Girls/dp/B008H0QKUO/ref=pd_zg_rss_nr_d_dvd_5?ie=UTF8&amp;tag=thedycom-20"&gt;The "Cool Girls"&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;&lt;b&gt;Amazon Instant Video&lt;/b&gt; ~ Jennifer O'Connell&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/The-Cool-Girls/dp/B008H0QKUO/ref=pd_zg_rss_nr_d_dvd_5?ie=UTF8&amp;tag=thedycom-20"&gt;Download:&lt;/a&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$1.99&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_5?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B008H0QKUO</guid><link>         http://www.amazon.com/The-Cool-Girls/dp/B008H0QKUO/ref=pd_zg_rss_nr_d_dvd_5?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#5: The "Cool Girls"</title></item><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/Sherlock-Holmes-A-Game-Shadows/dp/B007K3JFUQ/ref=pd_zg_rss_nr_d_dvd_6?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51%2B96DkdHwL._SL160_.jpg" alt="Sherlock Holmes" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/Sherlock-Holmes-A-Game-Shadows/dp/B007K3JFUQ/ref=pd_zg_rss_nr_d_dvd_6?ie=UTF8&amp;tag=thedycom-20"&gt;Sherlock Holmes: A Game of Shadows&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;Robert Downey Jr. &lt;span class="byLinePipe"&gt;(Actor)&lt;/span&gt;, Jude Law &lt;span class="byLinePipe"&gt;(Actor)&lt;/span&gt;, Guy Ritchie &lt;span class="byLinePipe"&gt;(Director)&lt;/span&gt; &lt;span class="byLinePipe"&gt;|&lt;/span&gt; &lt;span class="byLinePipe"&gt;Format:&lt;/span&gt; DVD&lt;/span&gt; &lt;br /&gt; &lt;img src="http://g-ecx.images-amazon.com/images/G/01/detail/stars-3-5._V192261419_.gif" width="64" alt="3.3 out of 5 stars" align="absbottom" height="12" border="0" style="margin: 0; padding: 0;"/&gt;(185)&lt;br /&gt;&lt;span class="riRssReleaseDate"&gt;Release Date: June 12, 2012 &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Sherlock-Holmes-A-Game-Shadows/dp/B007K3JFUQ/ref=pd_zg_rss_nr_d_dvd_6?ie=UTF8&amp;tag=thedycom-20"&gt;Buy new:&lt;/a&gt; &lt;strike&gt;$28.98&lt;/strike&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$9.99&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;a href="http://www.amazon.com/gp/offer-listing/B007K3JFUQ/ref=pd_zg_rss_nr_d_dvd_6?ie=UTF8&amp;tag=thedycom-20&amp;condition=all"&gt;59 used &amp; new&lt;/a&gt; from &lt;span class="price"&gt;$7.50&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_6?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B007K3JFUQ</guid><link>         http://www.amazon.com/Sherlock-Holmes-A-Game-Shadows/dp/B007K3JFUQ/ref=pd_zg_rss_nr_d_dvd_6?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#6: Sherlock Holmes: A Game of Shadows</title></item><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/Happily-Ever-After/dp/B008GQW2PQ/ref=pd_zg_rss_nr_d_dvd_7?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51-UpSaraTL._SL160_.jpg" alt="Happily Ever" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/Happily-Ever-After/dp/B008GQW2PQ/ref=pd_zg_rss_nr_d_dvd_7?ie=UTF8&amp;tag=thedycom-20"&gt;Happily Ever After&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;&lt;b&gt;Amazon Instant Video&lt;/b&gt; ~ Sony Pictures Home Entertainment&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Happily-Ever-After/dp/B008GQW2PQ/ref=pd_zg_rss_nr_d_dvd_7?ie=UTF8&amp;tag=thedycom-20"&gt;Download:&lt;/a&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$1.99&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_7?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B008GQW2PQ</guid><link>         http://www.amazon.com/Happily-Ever-After/dp/B008GQW2PQ/ref=pd_zg_rss_nr_d_dvd_7?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#7: Happily Ever After</title></item><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/Hunger-Games-2-Disc-Blu-ray-Digital/dp/B0084IG7KC/ref=pd_zg_rss_nr_d_dvd_8?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51ZNsLOdCxL._SL160_.jpg" alt="The Hunger" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/Hunger-Games-2-Disc-Blu-ray-Digital/dp/B0084IG7KC/ref=pd_zg_rss_nr_d_dvd_8?ie=UTF8&amp;tag=thedycom-20"&gt;The Hunger Games [2-Disc Blu-ray + Digital Copy]&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;Jennifer Lawrence &lt;span class="byLinePipe"&gt;(Actor)&lt;/span&gt;, Josh Hutcherson &lt;span class="byLinePipe"&gt;(Actor)&lt;/span&gt;, Gary Ross &lt;span class="byLinePipe"&gt;(Director)&lt;/span&gt; &lt;span class="byLinePipe"&gt;|&lt;/span&gt; &lt;span class="byLinePipe"&gt;Format:&lt;/span&gt; Blu-ray&lt;/span&gt; &lt;br /&gt; &lt;img src="http://g-ecx.images-amazon.com/images/G/01/detail/stars-4-0._V192261413_.gif" width="64" alt="4.2 out of 5 stars" align="absbottom" height="12" border="0" style="margin: 0; padding: 0;"/&gt;(189)&lt;br /&gt;&lt;span class="riRssReleaseDate"&gt;&lt;em class="notPublishedYet"&gt;Release Date: August 18, 2012&lt;/em&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Hunger-Games-2-Disc-Blu-ray-Digital/dp/B0084IG7KC/ref=pd_zg_rss_nr_d_dvd_8?ie=UTF8&amp;tag=thedycom-20"&gt;Buy new:&lt;/a&gt; &lt;strike&gt;$39.99&lt;/strike&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$22.96&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_8?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B0084IG7KC</guid><link>         http://www.amazon.com/Hunger-Games-2-Disc-Blu-ray-Digital/dp/B0084IG7KC/ref=pd_zg_rss_nr_d_dvd_8?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#8: The Hunger Games [2-Disc Blu-ray + Digital Copy]</title></item><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/Mirror-HD/dp/B008H0QGO4/ref=pd_zg_rss_nr_d_dvd_9?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/51W8yKKwEHL._SL160_.jpg" alt="Mirror Mirror" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/Mirror-HD/dp/B008H0QGO4/ref=pd_zg_rss_nr_d_dvd_9?ie=UTF8&amp;tag=thedycom-20"&gt;Mirror, Mirror [HD]&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;&lt;b&gt;Amazon Instant Video&lt;/b&gt; ~ Mike Rohl&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Mirror-HD/dp/B008H0QGO4/ref=pd_zg_rss_nr_d_dvd_9?ie=UTF8&amp;tag=thedycom-20"&gt;Download:&lt;/a&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$2.99&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_9?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B008H0QGO4</guid><link>         http://www.amazon.com/Mirror-HD/dp/B008H0QGO4/ref=pd_zg_rss_nr_d_dvd_9?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#9: Mirror, Mirror [HD]</title></item><item><description>&lt;div style="float:left;"&gt;&lt;a class="url" href="http://www.amazon.com/Meet-the-New-Boss/dp/B008FWI8OA/ref=pd_zg_rss_nr_d_dvd_10?ie=UTF8&amp;tag=thedycom-20"&gt;&lt;img src="http://ecx.images-amazon.com/images/I/41WYfrmYW6L._SL160_.jpg" alt="Meet the" border="0" hspace="0" vspace="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="riRssTitle"&gt;&lt;a href="http://www.amazon.com/Meet-the-New-Boss/dp/B008FWI8OA/ref=pd_zg_rss_nr_d_dvd_10?ie=UTF8&amp;tag=thedycom-20"&gt;Meet the New Boss&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;&lt;span class="riRssContributor"&gt;&lt;b&gt;Amazon Instant Video&lt;/b&gt; ~ Doug Liman&lt;/span&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Meet-the-New-Boss/dp/B008FWI8OA/ref=pd_zg_rss_nr_d_dvd_10?ie=UTF8&amp;tag=thedycom-20"&gt;Download:&lt;/a&gt;  &lt;font color="#990000"&gt;&lt;b&gt;$1.99&lt;/b&gt;&lt;/font&gt; &lt;br /&gt;&lt;br /&gt;(Visit the &lt;a href="http://www.amazon.com/gp/new-releases/dvd/ref=pd_zg_rss_nr_d_dvd_10?ie=UTF8&amp;tag=thedycom-20"&gt;Hot New Releases in &lt;/a&gt; list for authoritative information on this product's current rank.)</description><guid isPermaLink="false">new-releases_dvd_dvd_B008FWI8OA</guid><link>         http://www.amazon.com/Meet-the-New-Boss/dp/B008FWI8OA/ref=pd_zg_rss_nr_d_dvd_10?ie=UTF8&amp;tag=thedycom-20         </link><pubDate>Tue, 3 Jul 2012 19:47:22 GMT</pubDate><pubDateParsed xmlns="http://www.dotnetnuke.com/modules/news">2012-07-03T19:47:22</pubDateParsed><title>#10: Meet the New Boss</title></item></channel></rss>

Here is the XSLT:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="html" indent="yes"/>
 <xsl:param name="ItemsToShow" select="-1"/>
 <xsl:param name="ShowItemDetails"/>
 <xsl:param name="ShowItemDate"/>
 <xsl:param name="Locale"/>
 <xsl:param name="Target"/>
 <xsl:template match="rss">

        <xsl:for-each select="channel/item" >
            <xsl:sort select="position()" data-type="number" order="ascending" />
            <xsl:if test="position()&lt;=$ItemsToShow or $ItemsToShow&lt;1" >
                <h4>
                <a href="{link}">
                    <xsl:attribute name="target"><xsl:value-of select="$Target"/></xsl:attribute>
                    <xsl:value-of select="title"/>
                </a>
                </h4>
                <xsl:if test="$ShowItemDate='true'">
                    <h6>
                        <xsl:value-of select="pubDate"/>
                    </h6>
                </xsl:if>
                <xsl:if test="$ShowItemDetails='true'">
                    <p class="Normal">
                        <xsl:value-of select="description" disable-output-escaping="yes"/>
                    </p>
                </xsl:if>
            </xsl:if>
        </xsl:for-each>
     
    </xsl:template>
</xsl:stylesheet>

The module throws an error, but it is generic: 

ModuleControlSource: DesktopModules/News/RssModule.ascx

AssemblyVersion: 6.1.3

PortalID: 33

PortalName: WhatWatchNow.com - Discover, Share, Watch Movies and TV Shows

UserID: 1

UserName: host

ActiveTabID: 1128

ActiveTabName: Home

RawURL: /Home.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://whatwatchnow.com/Home.aspx

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.34 Safari/536.11

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 73bdbe1e-8241-4652-93ff-141628a0d88e

InnerException: Feed Errors

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method:

StackTrace:

Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Feed Errors ---> System.Exception: Feed Errors --- End of inner exception stack trace ---

Source:

Server Name: DNPWEB6-TX2


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsReverse sort order of a feedReverse sort order of a feed


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out