This is as days pass by, by Stuart Langridge

And this is Styling RSS feeds, written , and concerning Uncategorized

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!

Comments

Gary F

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.

sil

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…

Millennium

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

sil

What was I supposed to use other than XSL?

GaryF

points and mocks Good one for catching up though. Shame about using XSL, though.

quis

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).

GaryF

Regarding the above tip, make it application/rss+xml for super cool alpha geek points.

GaryF

Regarding the above tip, make it application/rss+xml for super cool alpha geek points.

GaryF

Sorry about the double post.


Apparently, it's not as simple as that. Watch out for a post on my blog soon about this.

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.