[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 16:52:43 CEST 2006


Hi

On 20.9.2006 15:31 Uhr, Andreas Wuest wrote:

> 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.

Of course, Yulup does better and also recognises Atom feeds having a prefix.

>  * 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... ;)

Fixed it using some XSLT trickery (thanks, Gregor) and now our website 
sports a working LiveBookmark which keeps you up-to-date.

You might though have to resubscribe since we changed the feed URI 
during the last few days.

-- 
Kind regards,
Andi



More information about the Phoenix mailing list