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 FeedsRSS Feeds Not Displaying Properly with XSL sheetsRSS Feeds Not Displaying Properly with XSL sheets
Previous
 
Next
New Post
4/19/2008 2:35 PM
 

I have read all of the FAQ's, searched endlessly and I hope that you can help me, please.

Problem:

I have two RSS feed modules on one page. One is giving me a perfect output, the rss feed URL is http://www.avma.org/rss/newsbytes/newsbytes_rss.xml

I am using the source code posted on DNN's site, that has this line: <xsl:value-of select="description" disable-output-escaping="yes"/>

The next module I am trying to display: http://www.vetecon.com/vetec/vetec.rss?id=44515 and I am using the same XSL file, but I am getting this output:

Veterinary Economics - Web Dailyhttp://www.vetecon.com/vetec/Web+Daily/Article/list/44515Veterinarians' source for expert veterinary information on practice management, communication, business skills, and leadership2008-04-19T18:25:28ZDying dog turned away by community veterinarians http://www.vetecon.com/vetec/Web+Daily/Dying-dog-turned-away-by-community-veterinarians/ArticleStandard/Article/detail/509695?contextCategoryId=44515&ref=25Reporter gives those doctors a chance to respond.2008-04-11T04:00:00Z

etc. etc. It is just lines of code. No formatting.

I have tried using various XSL files to fix this and alternatives, 

This one doesn't work:

<?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="TITLE"/>
<xsl:template match="rss">
  <!-- Do not show channel image -->
  <xsl:for-each select="channel/item">
 <xsl:if test="position() &lt;= 5">
  <br>

  <strong><a href="{link}" target="_main"><xsl:value-of select="title"/></a></strong><br></br>

  <!-- only display markup for description if it's present -->
  <xsl:value-of select="description" disable-output-escaping="yes"/>

  </br>
  <br></br>
 </xsl:if>
  </xsl:for-each>
</xsl:template>

<xsl:template match="description">
  <br>
    <xsl:value-of select="."/>
  </br>
</xsl:template>

</xsl:stylesheet>

I have tried changing the   <xsl:value-of select="description" disable-output-escaping="yes"/>

 to : 

<xsl:value-of select="description"/>

Any help would be much appreciated, my client as several RSS feeds from that site they want to display on their webpage:

http://www.vetecon.com/vetec/vetec.rss?id=10736
http://www.vetecon.com/vetec/vetec.rss?id=36289
http://www.vetecon.com/vetec/vetec.rss?id=3663
http://www.vetecon.com/vetec/vetec.rss?id=42556
http://www.vetecon.com/vetec/vetec.rss?id=44515
http://www.vetecon.com/vetec/vetec.rss?id=34357

Thanks,
Tracey Johnson

 

 
New Post
4/21/2008 10:54 AM
 

Tracey,

First, I've always said that the first thing to do when trying to understand newsfeed's is to look at the source itself.  You can view or follow my posts for details, but what you are doing is using 2 different formats of newsfeeds. The first, the newbytes feed is an RSS v2.0 feed, you can see that info from viewing the source:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="rss_xslstyle.xsl" ?>
<rss version="2.0"> 

The second feed, the vetecon feed, is a newsfeed in RDF format. Again, looking at the source:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/"
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
xmlns:EMSArticle="http://webdoc.advanstar.com/rss/module/EMSArticle"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/">

Bottom line is you cannot use an XSL that is programmed to format RSS feeds for correct translation of an RDF feed.  I suggest looking for examples of RDF xsl translations, I've posted a few, and don't have time to list them again.  Try to get a better handle on RSS, RDF, and DNN news xsl translations by 'googling'.  There is no substitute for learning as much as you can about the varieties of newsfeed formats.  Others have posted similar questions, and several in the DNN community have some nice tutorials on the subject.

The 'vetcon' feeds all appear to be rdf style feeds, and may be better suited to using the feed explorer in DNN, which I've discussed in this post,

www.dotnetnuke.com/Community/Forums/tabid/795/forumid/48/threadid/168802/scope/posts/Default.aspx

And blogged about here: wizzodawg.blogspot.com/2007/09/feedbrowser-hidden-news-agregattor.html

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsRSS Feeds Not Displaying Properly with XSL sheetsRSS Feeds Not Displaying Properly with XSL sheets


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