Atom.xml thinks it's RSS?

Pat Patterson Andrew.Patterson at Sun.COM
Sun Nov 4 04:06:50 EST 2007


Thanks for the explanation, Sam. I'll just nuke the other feeds and  
stick to Atom, esp since Feedburner will do the RSS variants on-demand.

Cheers,

Pat

On Nov 3, 2007, at 6:01 AM, Sam Ruby wrote:

> 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
> -- 
> devel mailing list
> devel at lists.planetplanet.org
> http://lists.planetplanet.org/mailman/listinfo/devel

- - - - -
Pat Patterson
Federation Architect, Sun Microsystems, Inc.
pat.patterson at sun.com - http://blogs.sun.com/superpat
- - - - -
Join OpenSSO today! http://opensso.dev.java.net/
- - - - -






More information about the devel mailing list