XSLT and RSS feeds.

XSLT is XSL Transformations, and XSL is Xtensible Stylesheet Language. (So says w3schools)

XSLT is pretty impressive. With a single stylesheet you can completely reformat XML data into a HTML structure that suits your needs. Even better than that, you can also use quite complex commands to single out specific peices of data. This gets me thinking – RSS feeds are XML based – and RSS feeds are often formatted in the ugly default method of the browser. So why don’t people use XSLT to completely refactor their RSS feed data, not least to maintain a bit of branding consistancy.

Fast-forward a couple of hours development, and we have a beautiful XSL file that reformats our RSS XML into a layout not dissimilar to the main HTML pages. Now, fast forward again – and we’re trying to make our RSS feeds look pretty in the browser. For some reason, the browsers’ aren’t utilizing our XSL stylesheet – both Firefox and IE are stubbornly refusing to use the XSL formatting when they encounter an RSS feed. XML is fine, but they’re stubborn when it comes to the RSS varient.

So, I guess the moral of the story might well be “if no-ones’ using it, it’s probably not possible? “

Irregardless, it was an interesting mini-project. If you’re interested, you might want to have a look at these links;

, ,

About James

James is a Senior New Media Developer at MMT Digital, and has BA(Hons) in Design for Interactive Media from the University of Gloucestershire. He loves designing and producing all sorts of website and Flash-related things, as well as prattling on about technologies.Day-to-day he works with Flash, Dreamweaver, Director, Microsoft Office Sharepoint Server 2007 (MOSS) and in his spare time he mucks about in Flex and Wordpress.Follow James on Twitter.

One Response to “XSLT and RSS feeds.”

  1. jldugger 1st June, 2009 at 10:27 pm # Reply

    They do, but they use more sophisticated tools like yahoo Pipes. I wrote a small article a while back about this, and after reading up on XSLT I think it can probably be done with XSLT and (maybe, I need to read up on it) XProc.

Leave a Reply

Note: This post is over 4 years old. You may want to check later in this blog to see if there is new information relevant to your comment.