ATOM Example



I promised thos to send an example of atom for the feeds on art.gnome.org, so here it is.

We have to discuss some things, we decided to move from RSS to ATOM because the icon and logo items to use them for the thumnails, but, looking closely at the specification, I've noticed that the logo and icon items are only for feeds and not for entries, so there is no real advantages, but the clear and better specification docs of ATOM over RSS.

* RSS spec don't says anything about how many enclosures tags are allowed inside of an item, so we have no good ways to fit the standard. * ATOM lets you (explicitly) so many <link rel="enclosure" .../> inside an entry as you want.

Some things that I'm not sure how to handle.
¿Should we use one <entry> for each resolution/format of the same background? ¿Should we use one feed for each class of themes? (Backgrounds, Gtk themes, etc...)

Since we have a last updated section, one feed section per class of themes doesn't have sense.

My opinion here is that we have to extend the spec with an agnostic namespace for specific attributes: <link rel="enclosure" theme:type="background" theme:resolution="1280x1024" .../>
<link rel="enclosure" theme:type="thumbnail" .../>
<link rel="enclosure" theme:type="gtk" theme:engine="clearlooks" .../>
<link rel="enclosure" theme:type="metacity" .../>

What do you think guys?

PD: I'm not a RSS/ATOM/${feed} expert, so comments and ideas are really wellcome.

<!-- Gnome Art Atom feed example.-->
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom";>

 <title>Gnome Art Example Feed</title>
 <link href="http://art.gnome.org/"/>
 <updated>2003-12-13T18:30:02Z</updated>

 <author>
   <name>Gnome Fundation</name>
 </author>


 <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>

 <entry>
   <title>Some Lame Background</title>
<link href="http://art.gnome.org/2003/12/13/atom03"/> <link rel="enclosure" type="image/jpeg" length="1337354"
    href="http://art.gnome.org/backgrounds/lamebackground_1280x1024.jpg"/>
   <link rel="enclosure" type="image/jpeg" length="1281"
    href="http://art.gnome.org/backgrounds/lamebackground_thumbnail.jpg"; />
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> <updated>2003-12-13T18:30:02Z</updated> <summary>Look at this funny landscape.</summary>
 </entry>

</feed>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]