Converting Blogger XML to RSS and Feeding it to PHPNuke

There are several pages out there that mention converting Atom 0.3 feeds to RSS 1.0 and 2.0 feeds. The problem is that they require quite a good knowledge of stylesheets. Most of the work stems from this site:

Aaronland Atom to RSS

The problem with this site, is that the documentation of exactly is going on is terrible, not surpising considering the author admits the docs are nto done :) Add to that the fact that I have never looked at XML stylesheets, or even XML for that matter and I was quickly struggling. Luckily I came across another site that took a simpler approach to the problem and used PHP - something I am vaguely familiar with:

Simpler PHP Approach

Unfortunately the PHP script used by the author used a method not available on my web server. Thankfully the Zip File available from that site came with a usable XML stylesheet (rss1.xsl). I'd recommend using the authors PHP code if you can, since the programmer looks like he knows what he's doing :) I used that combined with Mr. Cope's method from Aaronland above to write an even simpler bit of PHP:

<?php
system("/path/to/xsltproc /path/to/rss1.xsl /path/to/blogfeed.xml");
?>

I then just point my custom PHP Nuke block at the PHP file and voila! I have functioning RSS feed for my site :)

FYI, I have tested the stylesheet written by Phil Wainright over at Loosely Coupled and it works in the same way - looks to be an RSS 2 feed, though since the first one works fine for me I have no reason to change.

Hope this helps - it took me some time to Google all these sites and make sense out of them, hopefully this summary will save someone else a lot of time :)

Google
 
Web comerford.cc