Post

Relative links in RSS and Atom

The upcoming 1.3 version of NewsGator fully supports relative links. I’m writing this here to make sure I haven’t missed anything…input is appreciated. 1.3 beta testers - what is written here does not reflect your latest code.

When resolving all links, including and similar elements, and content links (description, content:encoded, atom:content), xml:base behavior is used. The xml:base attribute may appear anywhere in the input document, and the rules will be followed according to the spec. Which means, of course, that multiple xml:base attributes can be used, applying to different parts of the document.

For content elements, in the case where no applicable xml:base is found, links will be resolved relative to the URI (or if @isPermaLink=”true”).

This post is licensed under CC BY 4.0 by the author.