I got an email last night from a well known syndication implementor
pointing out an obvious bug in my Atom feed. The feed's valid, but
the stuff in <content> was full of relative URIs which were broken
because I'd borked the xml:base. So I went through the code and got
the xml:base right and ruthlessly pruned all the pointers. The feed
looks a little weird and it's giving the (pre-alpha) validator a
heartburn, but I sort of think it's right. I also think it's good
practice. Check it out:
<feed xmlns='http://www.w3.org/2005/Atom'
xml:base='http://www.tbray.org/ongoing/'
xml:lang='en-us'>
<title>ongoing</title>
<link href='' />
<link rel='self' href='ongoing.atom' />
<logo>rsslogo.jpg</logo>
<icon>/favicon.ico</icon>
<updated>2005-07-16T11:17:23-08:00</updated>
<author><name>Tim Bray</name></author>
<subtitle>ongoing fragmented essay by Tim Bray</subtitle>
<id>http://www.tbray.org/ongoing/</id>
<rights>All content written by Tim Bray and photos by Tim Bray
Copyright Tim Bray, some rights reserved, see /ongoing/misc/
Copyright</rights>
<generator uri='misc/Colophon'>Generated from XML source code using
Perl, Expat, XML::Parser, Emacs, Mysql, and ImageMagick. Industrial
strength technology, baby.</generator>
<entry xml:base='http://www.tbray.org/ongoing/When/200x/2005/07/14/'>
<title>Atom 1.0</title>
<link href='Atom-1.0' />
<id>http://www.tbray.org/ongoing/When/200x/2005/07/14/Atom-1.0</id>
<published>2005-07-14T13:00:00-08:00</published>
<updated>2005-07-16T11:17:12-08:00</updated>
<category scheme='http://www.tbray.org/ongoing/What/'
term='Technology/Atom' />
<summary type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'>It’s
cooked
... eliding ...
<content type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'>
... eliding ...
<img class="inline" src="Atom.png" alt="Atom"/>