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!

9 Responses to “Styling RSS feeds”

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

    Gary F
  2. 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…

    sil
  3. 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

    Millennium
  4. What was I supposed to use other than XSL?

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

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

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

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

    GaryF
  9. Sorry about the double post.

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

    GaryF

Leave a Reply