XML technologies / RSS & Atom / RSS 2.0 / Extension modules
(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)
Unlike its predecessors in the RSS 0.9x family, RSS 2.0 can be extended through modules. A module consists of XML elements providing additional functions. Its elements must belong to their own defined XML namespace.
Namespaces give RSS 2.0 a technique introduced early on for extending XML vocabularies. If you are unfamiliar with it, see XML namespaces for the background needed to continue.
Modularity and extensibility also characterize the other two syndication vocabularies: RSS 1.0 and Atom. In principle, RSS 2.0 modules can also be combined with them, although RSS 1.0 and Atom impose additional restrictions absent from RSS 2.0.
Open questions about extensibility
The interpretation of XML vocabulary extensions will recur in the following pages. Can general mechanisms be defined, or must each extension separately specify how a target application should process new elements? Discussions about RSS 1.0 and Atom reveal the problems involved in extending syndication vocabularies.
For now, note that many developers of other syndication standards consider namespaces alone insufficient to define how an RSS vocabulary may be extended.
All non-RSS elements belong to a namespace
An RSS 2.0 feed may contain elements from other vocabularies only if they belong to a defined namespace. There are no further extension restrictions, but extensions are useful only when software can process their additional constructs.
Usually a prefix separated from the local name by a colon identifies elements from an extension module. Examples are ssr:rdf or dc:author. Software unable to use these elements may simply ignore them. Their namespace declaration tells the processor which namespace they belong to.
The processor assigns unprefixed attributes to the namespace of the element on which they occur. Prefixed attributes can also be combined with elements from other namespaces.
No namespace for RSS elements themselves
RSS elements themselves have no namespace, preserving compatibility with earlier formats. If validating RSS required a namespace declaration, RSS 0.91 and 0.92 documents would necessarily be invalid. Winer himself later proposed experimenting with a namespace for RSS vocabulary elements, ultimately without result.
Structural risks
Namespaces are also used for extensions in other syndication formats, but in a more restricted, explicit way than RSS 2.0. Winer does not specify where extensions may occur in an RSS document. Other authors, such as Morbus Iff (Kevin Hemenway), have noted that extension elements not descending from channel or item can alter an RSS document’s structure and cause incorrect processing (see Extending RSS 2.0 With Namespaces).
Extensions: less is more
Dave Winer has repeatedly recommended using namespaces sparingly, particularly opposing extensions where RSS 2.0 elements suffice, a practice he calls funky. The priority is simplicity for users and implementers. RSS achieves much because it is a standard. Extensions lacking broad adoption are pointless unless designed for specific software. Here too: Less is more. Modules with few, simple, clearly defined elements are easiest to implement and most likely to gain adoption. Namespace URIs should end with a slash / or hash #. RDF applications can use such URIs more easily to interpret element names as unique property identifiers (see predicate URIs under RDF basics).

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