Msg#: 3764656 posted 4:25 pm on Oct 13, 2008 (gmt 0)
My understanding was that the latest Firefox and IE browsers had RSS rendering engines built in. Thus reducing the need for an XSLT file to render RSS in the browser.
My predecessor has set-up an itunes compliant podcasting RSS feed that renders ok in Firefox without an XSLT file. This would seem to confirm that an XSLT file isn't a requirement to render rss in Firefox and IE7+.
However, I created a test news feed using feedforall, I saved this to my desktop and when I open it in the browser I just see the raw XML and a message which reads "This XML file does not appear to have any style information associated with it. The document tree is shown below."
I'm now totally confused. Do I need XSLT to render RSS in Firefox and IE7+ or not?
I'm very new to RSS so any advice would be very welcome. Thanks
ps here's code for the test news feed I created with feedforall -
<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"> <channel> <title>livePublicLecturesAndEvents</title> <description>A listing of public lectures and events from The London School of Economics and Political Science due to be broadcast live on the their website at the following web address - http://www.example.com/collections/LSEPublicLecturesAndEvents/live/LSELive.htm</description> <link>http://www.example.com/collections/LSEPublicLecturesAndEvents/live/LSELive.htm</link> <category domain="">Education</category> <copyright>London School of Economics and Political Science</copyright> <docs>http://blogs.law.harvard.edu/tech/rss</docs> <language>en-gb</language> <lastBuildDate>Mon, 13 Oct 2008 12:58:20 +0100</lastBuildDate> <managingEditor>email@example.com</managingEditor> <pubDate>Mon, 13 Oct 2008 12:45:12 +0100</pubDate> <webMaster>firstname.lastname@example.org</webMaster> <generator>FeedForAll v2.0 (22.214.171.124) http://www.feedforall.com</generator> <item> <title>Hot, Flat and Crowded - Tuesday 14 October 2008</title> <description>Date: Tuesday 14 October 2008<br> Time: 6.30-8pm GMT<br> Venue: Old Theatre, Old Building<br> Speaker: Thomas L Friedman<br> Chair: Professor Eric Neumayer<br /> <p> Thomas L Friedman takes a fresh and provocative look at two of our biggest challenges – the global environmental crisis and America’s surprising loss of focus and national purpose since 9/11 – and shows how they’re linked. He argues that we need American commitment and leadership in a green revolution, a revolution that will be the biggest innovation project in history, one that will inspire us to summon all the intelligence, creativity, boldness and concern for the common good that are our greatest human resources. </p><p> Thomas L Friedman, the foreign affairs columnist for The New York Times, is a three-time Pulitzer Prize winner, and the author of From Beirut to Jerusalem, The Lexus and the Olive Tree, Longitudes and Attitudes and The World is Flat, winner of the first Financial Times/Goldman Sachs Business Book of the Year Award.</p></description> <link>http://www.example.com/collections/LSEPublicLecturesAndEvents/events/2008/20080819t1353z001.htm</link> <guid isPermaLink="false">3191A104-4566-4BD0-8510-C897B52F56F4</guid> <pubDate>Mon, 13 Oct 2008 12:35:46 +0100</pubDate> </item> </channel> </rss>
[edited by: bill at 4:15 am (utc) on Oct. 14, 2008] [edit reason] Don't link to live feeds please [/edit]
Msg#: 3764656 posted 4:27 am on Oct 14, 2008 (gmt 0)
Welcome to WebmasterWorld monstermunch.
Nearly all major browsers have support for XML and XSLT. That does not mean that they have RSS readers built in. Opera is the only major browser with a feed reader included. All other browsers require a plug-in or add-on.
Msg#: 3764656 posted 11:18 am on Oct 14, 2008 (gmt 0)
Perhaps I've misunderstood something? RSS feeds render for me in IE7+ and Firefox without any additional plugins.
The layout isn't particularly sophisticated and of course there are none of the features you would get with a dedicated feed reader but it renders ok in the browser with clickable links to media items or associated web pages etc as opposed what happened pre IE7 when I would just see the raw XML code.
Here's a screen grab of my itunes rss feed rendered in Firefox 3 without any additional plugins and without XMLT translation.
[edited by: bill at 1:19 am (utc) on Oct. 15, 2008] [edit reason] No links to examples, thanks [/edit]
Msg#: 3764656 posted 1:48 pm on Oct 14, 2008 (gmt 0)
Actually I think I've answered my own question.
The reason my test RSS news feed didn't render in my browser was due to the fact I was running it locally from my c drive. As soon as I uploaded it and accessed it via www it worked as I expected it would.
Therefore I can only conclude that RSS feeds do render in the latest Firefox and IE browsers. They don't have all the features of a dedicated RSS reader but they do render the feed with clickable links to media or associated web pages. As opposed to pre IE7 when all I would see would be the raw XML code.
I'm new to RSS so more than happy for someone to correct me if I'm wrong.
Msg#: 3764656 posted 2:14 am on Oct 16, 2008 (gmt 0)
I'm not sure why a local file would have behaved differently from one on a web server. I tested locally and my browsers worked the same regardless.
XSLT allows you to generally have some control over the look of a feed. This will work mostly with web browsers. However, most feed readers will ignore your formatting and use their own.
You can't predict where and how your feeds will be used so often a stylesheet is pointless. As you know most browsers will show a feed with their own style. Only Google Chrome shows me raw XML without an XSLT.