On Fri, 10 Dec 2004, Lincoln wrote:

> Anybody know of a script to generate an rss feed from a regular static html 
> document?  Maybe one that would update the feed when the page is updated?

Isn't the whole point of RSS to not be static?

The usual approach would be more along the lines of using a module like 
XML::RSS to generate a dynamic feed with changing content --

  <http://search.cpan.org/~kellan/XML-RSS-1.05/lib/RSS.pm>

But if you want to convert a static HTML document to something that 
looks like RSS, the easiest way to do it, provided that the HTML is well 
formed and, ideally, XHTML compliant, might be an XSLT converter. This 
article gives one look at how to go about doing that:

  <http://www.xml.com/pub/a/2003/01/02/tr.html>

Actually, that does a different conversion, but converting your HTML to 
the RSS dialect of XML should certainly be possible.

You can get Perl involved if you want to, but this is a problem that can 
be done with command line XML processing tools just as easily.
 

-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to