Thursday, November 17, 2005

Atom 0.3 to RSS 1.0

My blogs are hosted on Blogger. Because Blogger only supports Atom, syndication applications that only read RSS can't subscribe to my blogs. Today I found a useful web service that helped me to create an RSS 1.0 feed from an existing Atom 0.3 feed.

http://cavedoni.com/2004/02/rss1.py

How does it work? The service reads an atom feed and transforms the feed into a live RSS using XSLT. For example, I take my atom feed (http://harry.hchen1.com/cat_semweb/atom.xml), and feed it to the service. I then get back http://cavedoni.com/2004/02/rss1?uri=http://harry.hchen1.com/cat_semweb/atom.xml.

To make the URL look pretty, I added a URL rewrite rule on my server.

RewriteEngine on
RewriteRule ^semweb\.rss$ http://cavedoni.com/2004/02/rss1?uri=http://harry.hchen1.com/cat_semweb/atom.xml [P]

Now, you can subscribe to the RSS 1.0 feed via http://harry.hchen1.com/cat_semweb/semweb.rss