XML technologies / RSS & Atom / Atom / Extensibility

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

Like RSS 2.0 and RSS 1.0, Atom is extensible. Atom does not yet have its own modules, but many modules developed for RSS formats are likely to work with Atom too. Unlike the RSS 2.0 specification, the Atom specification sets minimum syntactic requirements for extensions. Unlike the RSS 1.0 specification, however, it does not prescribe how Atom extension elements are to be interpreted semantically. (RSS 1.0 modules must be defined so that RDF triples can be extracted from them. XML that does not conform to RDF must be marked with the attribute rdf:parsetype='literal' so that an RDF parser can interpret it.)

For extensions, the Atom specification defines a separate extension construct (extension construct). Its permitted positions within an Atom element are specified: extension constructs may occur within person constructs, feeds, and entries. If "foreign markup" occurs here, software may choose not to process those passages. If foreign markup occurs within text constructs or in the content of the Atom element content, software should actually refrain from processing it.

All descendants of elements named feed and entry and of person constructs are treated as metadata describing those elements. The interpretation of foreign markup elsewhere is not governed by the specification.

The specification distinguishes between simple and complex extensions. Simple extensions are elements with no attributes other than xmlns. Extensions of this type should be interpreted as name/value pairs relating to the feed, entry, or person they belong to. The namespace URI and the element’s local name form the name; the element’s content forms the value.

For complex extensions, the Atom specification says nothing about how the "foreign" constructs should be interpreted. Elements in complex extensions have attributes and/or further elements as descendants; they are always language-sensitive.

   

 

 

 

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

back to top