[Phoenix] How to create an Atom feed which can be used as a Firefox
LiveBookmark
Andreas Wuest
awuest at student.ethz.ch
Wed Sep 20 15:31:37 CEST 2006
Hi
After some struggle with our Atom feeds to work as a so called
LiveBookmark in Firefox, I came to the following conclusions:
* The Atom feed elements must live in the default namespace
("http://www.w3.org/2005/Atom") and therefore must not be prefixed. This
sucks.
* Every Atom entry must contain a <link> element which has a "href"
attribute but no "rel" attribute (in other words, every Atom entry must
have a link which takes you somewhere; this is the link which is
followed if you click on that entry).
If those two points are not obeyed, the feed will fail to load.
With regard to namespaces, it is though perfectly valid to have a feed
looking like
<feed xmlns="http://www.w3.org/2005/Atom">
...
<entry xmlns="http://www.w3.org/2005/Atom">
...
</entry>
</feed>
I.e., you can redeclare the Atom namespace in an entry (as long as it is
the default namespace). At first, this doesn't make sense (although it
is ok with regard to the XML spec), but it makes aggregation of entries
into feeds easier (i.e. the entries don't have to have their namespace
declaration stripped).
Now, we just have to implement these rules for our demo feeds... ;)
--
Kind regards,
Andi
More information about the Phoenix
mailing list