Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ziggy (25)

ziggy
  (email not shown publicly)
AOL IM: ziggyatpanix (Add Buddy, Send Message)

Journal of ziggy (25)

Thursday December 16, 2004
08:57 AM

Best Practices in Syndication

[ #22330 ]
delegatrix pointed me to these RSS Feeds over at http://www.defenselink.mil/news/rss/. Load one of them in your browser, and it looks like HTML. But it's really RSS.

How'd they do that? Here's the secret:

<?xml-stylesheet type="text/xsl" href="rss_stylesheet.xsl"?>

Yep. All of the HTML fluff is statically defined in a stylesheet, comon to half a dozen news feeds. Aggregators are happy, and reasonable browsers do something useful. Feeds change, and there's no work to be done. Change the shell once, and it's used for all six feeds.

And that's the way it should be. ;-)

</soapbox>

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.