Things have changed. Both feeds are now correct. Actually, only two changes had to be done:
- remove the duplicate ID in the items,
- replace all entity references with Unicode references (eg: & amp ; -> & #38 ; (IIRC)).
Now my site has the Atom link on the index page, both on screen and in the header. Atom still uses too new a protocol for the validator, but it's OK with me: Firefox does recognize it, and displays the orange icon in the status bar. (FYI, having the RSS1 feed is just a matter of replacing the 'news-atom.php' part with 'news-rss1.php' in the URL).
So you could say I'm happy with the result... Well, I am, except that...
In order to inform people without a feed reader, I use an XSL stylesheet to transform the raw XML feed into an HTML page with explanations. To "please" Firefox, I had to:
- send the Atom (or RSS) content in application/xml instead of application/atom+xml (or rss+xml);
- remove the forementionned header ('Content-Disposition');
- write a get.php script, to be able to choose the MIME header myself, because FF goes into "strict" mode, and does not accept the XSL file if it does not come in application/xml.
I'm not really happy with this. Is there any workaround?
Besides, even though I know that XSL works in IE, *my* XSL does not. Could someone help me spot where the problem is (or if it simply is "my" IE that does not work).
For a start, I'd like to hear from you IE users: does my feed (when you click on the "ATOM" icon) display as HTML or XML? In what version of IE?
Thanks to all testers out there. My whole PHP framework will soon be released under GPL, and it will be in part thanks to you
Yves.