XML technologies / RSS & Atom / RSS 1.0 and RSS 1.1 / RSS 1.1

(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)

In January 2005, Sean B. Palmer and Christopher Schmidt presented a draft revised RSS specification called RSS 1.1. RSS 1.1 is a reformulation of RSS 1.0. It fixes some errors, but above all updates the aging format to the current state of RDF, RDF/XML, and XML.

<?xml version="1.0"?>
<Channel xmlns="http://purl.org/net/rss1.1#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:about="http://www.celawi.eu/webtrends/">
   <title>Webtrends</title>
   <link>http://www.celawi.eu/webtrends/</link>
   <description>Nachrichten aus dem Medien-Business</description>
   <image rdf:parseType="Resource">
      <link>http://www.celawi.eu/webtrends/images/webtrends.png</link>
      <title>Logo</title>
      <url>http://www.celawi.eu/webtrends/</url>
   </image>
   <items rdf:parseType="Collection">
      <item rdf:about="http://www.celawi.eu/webtrends/">
         <title>Musikdownloads: Allianz von Microsoft und Nokia gegen Apple</title>
         <link>http://www.celawi.eu/webtrends/403</link>
         <dc:subject>Mobil</dc:subject>
         <description>Nokia und Microsoft haben sich verbündet. Sie wollen die Vorherrschaft des kalifornischen Apple-Konzerns im Geschäft mit Musikdownloads brechen. Dazu zeigt sich Nokia bereit, Handys künftig auch mit Software zum Abspielen von Musik und Videos des einstigen Erzrivalen Microsoft anzubieten.</description>
         <dc:creator>Julia Preiner</dc:creator>
         <dc:date>2005/02/15 08:15:48.428 GMT+1</dc:date>
      </item>
      <item rdf:about="http://www.celawi.eu/webtrends/">
         <title>BBC bald auf Platz eins bei Digital-TV</title>
         <link>http://www.celawi.eu/webtrends/404</link>
         <dc:subject>Digital and Mobile</dc:subject>
         <description>Noch ist der Sender BSkyB der Marktführer am digitalen Fernsehmarkt Grobritaniens. Experten sagen jedoch voraus, dass das Produkt Freeview des öffentlich-rechtlichen Senders BBC bald die Spitzenposition übernehmen wird. Während BSkyB bereits seit Mitte der 80er operiert, gibt es Freeview erst seit 2002. Mit der Empfangsbox können rund 40 digitale Fernsehsender und 20 Radioprogramme empfangen werden.</description>
         <dc:date>2005/02/15 08:18:06.206 GMT+1</dc:date>
         <dc:creator>Julia Preiner</dc:creator>
      </item>
      <item rdf:about="http://www.celawi.eu/webtrends/">
         <title>Mobilcom: Gewinnexplosion dank Internetgeschäft</title>
         <link>http://www.celawi.eu/webtrends/405</link>
         <dc:subject>Provider</dc:subject>
         <description>Vor allem das Internet- und Festnetzgeschäft der Tochter Freenet tragen dazu bei, dass  Mobilcom, der zweitgrößte deutsche Mobilfunk-Dienstleister, eine regelrechte Gewinnexplosion verzeichnen kann.</description>
         <dc:creator>Martin Röller</dc:creator>
         <dc:date>2005/02/15 08:20:00.061 GMT+1</dc:date>
      </item>
   </items>
</Channel> 

RSS 1.1’s authors intend only to correct obvious errors in RSS 1.0. Essentially, RSS 1.1 respecifies the RSS 1.0 vocabulary to reflect the current state of RDF. It drops some syntactic peculiarities that had particularly hindered wider adoption of RSS 1.0.

RSS 1.0 extension modules are incorporated into a document using the construct Any. The sole content restriction is that the construct’s root element must represent a property in an RDF graph.

The following differences from RSS 1.0 are explicitly listed:

Several important provisions address backward compatibility, including compatibility with older RSS 0.9x versions. All backward compatibility provisions are recommendations.

Regardless of encoding, all RSS 1.1 documents should begin with an XML prolog. Since RSS 0.9x formats have no defined namespace, RSS 1.1 documents should use no prefix for RSS elements and should use the prefix rdf for all RDF names. It is also recommended to use only the URI prefixes http:, https: and ftp:.

Image producers should likewise restrict themselves to the .jpg, .gif, and .png formats customary in older versions and, if possible, to the maximum sizes of 144 x 400 or 88 x 31 pixels. A maximum of 15 item elements is recommended.

Finally, extension sections should not repeat elements of the same name at the same level, for example by using dc:subject twice consecutively. This accounts for the fact that many RSS applications use elements and their contents to generate a hash table.

A payload module is intended to replace the older content module. Unlike its predecessor, Payload does not escape content containing markup. Instead, this must be XHTML identifiable by the correct namespace declaration. Using the RDF element rdf:parseType="Literal" within the root element ensures that the content can be processed correctly.

A simplification compared with RSS 1.0 is that RSS 1.1, like Atom, is described by a RELAX NG schema, making validation easy. Extensions also have a RELAX NG schema and an OWL ontology.

RSS 1.1 documents should be served with the media type application/rss+xml and may be served with the media type application/rdf+xml. Other values are not allowed.

   

 

 

 

Creative Commons license
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

back to top