Atom.xml thinks it's RSS?
Sam Ruby
rubys at intertwingly.net
Sun Nov 4 00:01:41 EST 2007
Pat Patterson wrote:
> I noticed recently that the atom output seems to think it's rss - from
> Planet Identity (http://planetidentity.org):
>
> <?xml version="1.0"?>
> <feed [...]/>
> [...]
> <id>http://planetidentity.org/rss20.xml</id>
> <link href="http://planetidentity.org/rss20.xml" rel="self"
> type="application/rss+xml"/>
> [...]
>
> This isn't a big deal - about the only thing that notices is Feed
> Validator -
> http://feedvalidator.org/check.cgi?url=http%3a%2f%2fplanetidentity.org%2fatom2.xml (I
> copied atom.xml to atom2.xml as I have an Apache RewriteRule to redirect
> atom.xml to FeedBurner).
>
> I've looked in atom.xml.xslt and can't see anything obvious in there.
> Unfortunately, my Python and XSLT is not good enough to come up with a
> fix - any chance that someone could take a look???
What's going on here is that Venus computes a single "id" and preferred
"self" link for all feeds produced. Especially since this planet is
using feed burner, there really is no reason to produce multiple feeds
in different formats.
The way that Venus decides which format is "preferred" is simpleminded:
it takes the first one listed in your configuration. Now, with "themes"
and all that, determining which one is "first" may be unclear. But if
you remove all but the one feed template that you care about, this
problem should clear itself up.
If this turns out to be a problem, let me know and I can add a
configuration option to allow you to select your preferred feed.
- Sam Ruby
More information about the devel
mailing list