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 FeedsMSN Spaces RSS HTML output formatingMSN Spaces RSS HTML output formating
Previous
 
Next
New Post
2/6/2006 11:52 AM
 

Hello everyone,

I am trying to get rss from msn spaces to have updated blog feature for my site.

Basically I want to use the msn spaces because I have been using that for some time and even though I tested the dotnetnuke blog feature I still want to tryout how an msn spaces will work if I include it's rss.

I tried to use msn rss style sheet but when i include that by linking directly or creating a local file it gives an error and when I don't include the style sheet and just link the rss the titles comes fine but the description includes all the html characters.

How can I clean the document without using msn rss stylesheet?

thanks in advance...


http://blog.wasay.net
 
New Post
2/6/2006 3:51 PM
 

I'm confused on exactly what you want to do, so I'll give you what I think it is, and you can correct me if my interpretation is wrong.

The RSS feeds you get when you click the Syndicate With RSS link from MSN Spaces is a feed that includes an embedded stylesheet, which means the content of the feed is linked to a stylesheet file on their site. 

Now, if you want to use the feed in your DNN site, you can copy the URL, and place it in the URL textbox for the RSS, and without further work, this will display on your DNN site, but it doesn't exactly render any HTML formatting because the default xsl translation fiel for DNN disables HTML.

If you want to render the HTML in the feed, you will need a custom RSSv2.0 xsl file.  Here's a simple one to get you started:

 <?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- xmlns:xsl="http://www.w3.org/TR/WD-xsl" -->
<!-- phil 'iwonder' guerra - simple RSSv2.0 xsl -->
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>
<xsl:template match="rss">

  <xsl:apply-templates select="channel" />

  <xsl:apply-templates select="channel/item" />

</xsl:template>

    <xsl:template match="channel">
  <strong><a href="{link}"><xsl:value-of select="title"/></a></strong><br/>
  <font size="-3">
  <xsl:value-of select="description" disable-output-escaping="yes"/>
  </font>
  <hr/>
 </xsl:template>

 <xsl:template match="channel/item">
   <font size="-3" color="maroon"><b><xsl:value-of select="pubDate"/></b></font> <br/>
   <strong><a href="{link}">
   <xsl:value-of select="title"/></a></strong>
      <br/>
      <xsl:value-of select="description" disable-output-escaping="yes"/><br/>
 <hr/>
 </xsl:template>
</xsl:stylesheet>

Take the code, copy and paste into your text editor and save it to a local file store.  Then, access your site, and the module using the Admin signon.  Modify the newsfeed, and in the section for the News Feed Style Sheet, click on the 'Upload New File' link, browse the location where you saved your new simple xsl file from above, and click 'Upload Selected File' link, and update the settings.

Refresh the browser window and the feed should show render the pubDate, Title (link), and Descpription including the HTML formatting.

If that's not what you wanted, just let me know.

Cheers

 
New Post
2/6/2006 7:08 PM
 

Thanks so much.

This is exactly what i was looking for :)

I searched the web for like weeks to find a solution. well glad that this worked out...

 

If any one still have trouble just make sure to save the file as "msn_spaces.xsl" or any name with extension xsl.

It's perfect.

Thanks again :)

Cheers to you too

 


http://blog.wasay.net
 
New Post
5/15/2007 11:17 AM
 

Thanks.  That helped me too.

 
New Post
6/2/2007 5:03 AM
 

I have a similar problem.  I want to show rss news like msn home page.  I get the feed from msn like below.

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
 <channel>
  <title>MSN Entertainment</title>
  <link>http://msn.com</link>
  <description>Entertainemnt news fron MSN</description>
  <item>
   <title>Gossip: Abdul audio tape leaked</title>
   <link>http://entertainment.msn.com/tv/hotgossip/5-31-07_6?GT1=7701</link>
   <pubDate>Sat, 02 Jun 2007 00:29:00 GMT</pubDate>
   <description>Paula Abdul (© Frederick M. Brown/Getty Images)</description>
   <enclosure length="3000" url="http://stb.msn.com/i/F4/F3107B262E35B676B7204340D8E193.jpg" type="image/jpeg"></enclosure>
  </item>
 </channel>
</rss>

How do I get the url value out of the <enclosure> element???  Thanks for any help.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsMSN Spaces RSS HTML output formatingMSN Spaces RSS HTML output formating


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