« Reasons why Mena is awesome (for the day of Sunday, Aug 7, 2005) | Main | I use "Loudsp." daily. Really. »

August 11, 2005

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Timothy Appnel

Very interesting and great work as usual.

I notice that your one-liner is generating the spliced feeds in Atom. Does that feed splicer guarantee valid Atom output even if one or more of the sources are RSS?

btrott

Well, "guarantee" is a strong word. :)

But yes, it will auto-convert all of the RSS feeds to Atom--that's what the convert('Atom') code does. It's basically a no-op for feeds that are already Atom, and it'll convert RSS feeds to Atom.

Timothy Appnel

So in other words, garbage in garbage out. If you try to splice in an odd, funky or unneighborly RSS feed that is missing data Atom requires, the splice will output an invalid feed.

btrott

In the current implementation, yes--neither XML::Atom nor XML::Feed do validation on created feeds.

XML::Feed does, however, try to do some intelligent detection of where your full post content is in RSS feeds, by looking at a combination of description, content:encoded, and xhtml:body. No guarantees there, either, of course, but then again, that confusion is part of the reason why Atom exists. :)

Anil Dash

I can't believe you said "funky", Tim. :)

Timothy Appnel

Sorry Anil I forgot funky syndication is a taboo subject around your parts.

Thanks for the explanation Ben.

Josh Friedland

Is there a way that a typepad user could implement this (keeping in mind that said user doesn't even know what perl is)?

If it's way too complicated, I'll just recommend that you offer feed splicing as a new feature on typepad.

Retro Jordans

All of us have the ability to adapt our own story.

The comments to this entry are closed.