Styling RSS feeds
So, it looks like everyone else in the world discovered this and implemented it while I was in the bog or something, but if you add an XSL stylesheet to your RSS feed then it displays nicely in browsers that support XSL. So, styled RSS feed. Now you can all laugh behind your hands at how slow I am!
I went the CSS route (a fair while ago). I had assumed that the “this is the…” line was part of the feed (feed description), my mistake.
9 hours later
CSS won’t help me add a paragraph like “this is the kryogenix.org RSS feed“, unless I use :after and content(), and that’s not cross-browser supported. That’s why I used XSL; if there’s a better alternative I’m happy to hear it…
9 hours later
CSS stylesheets work with XML, just as they do for HTML. There is one pitfall: you have to explicitly speficy a display attribute on each tag, because there are no defaults as there are in HTML. However, other than that, it works gine in Gecko, IE, and Safari.
http://www.w3.org/2000/08/w3c-synd/home.rss
9 hours later
What was I supposed to use other than XSL?
9 hours later
points and mocks Good one for catching up though. Shame about using XSL, though.
9 hours later
Just a little tip, make sure your server is sending the rss as text/xml else mozilla will try to render the feed as an html page (i.e. it looks a mess).
6 weeks later
Regarding the above tip, make it
application/rss+xmlfor super cool alpha geek points.6 weeks later
Regarding the above tip, make it
application/rss+xmlfor super cool alpha geek points.6 weeks later
Sorry about the double post.
Apparently, it’s not as simple as that. Watch out for a post on my blog soon about this.
6 weeks later