Sjoerd Visscher wrote:
Tim Bray wrote:
On Jul 16, 2005, at 1:28 PM, Sam Ruby wrote:
I didn't realize that "path-empty" was a valid URI-reference.
Yeah, it means "here".
And that's why you can't use it as a reference to your site.
To quote from RFC 3986:
When a URI reference refers to a URI that is, aside from its fragment
component (if any), identical to the base URI (Section 5.1), that
reference is called a "same-document" reference. The most frequent
examples of same-document references are relative references that are
empty or include only the number sign ("#") separator followed by a
fragment identifier.
When a same-document reference is dereferenced for a retrieval
action, the target of that reference is defined to be within the same
entity (representation, document, or message) as the reference;
therefore, a dereference should not result in a new retrieval action.
So, <link href='' /> links to the atom file (as currently in memory),
not your site.
Actually, after thinking about it some more, even
<link href='http://www.tbray.org/ongoing/' /> would *not* really be a
link to your site, because it is still identical to the base URI.
So you can't use http://www.tbray.org/ongoing/ as your base URI.
And actually it makes much more sense to user the uri of your atom file
as base URI. (IMHO it is good practice to always set the URI of the file
as xml:base on the root element.)
So I'd suggest:
<feed xmlns='http://www.w3.org/2005/Atom'
xml:base='http://www.tbray.org/ongoing/ongoing.atom'
xml:lang='en-us'>
<title>ongoing</title>
<link href='.' />
<link rel='self' href='' />
--
Sjoerd Visscher
http://w3future.com/weblog/