Re: #foo URI references

/ "Roy T. Fielding" <fielding@gbiv.com> was heard to say:
[...]
| There is no change in meaning (I wrote both sentences in both documents
| and I am absolutely certain of that).  Base has always defined a name
| space for the document's reference resolver, and the behavior will

I think there is a change in meaning, and I think the following example
demonstrates it:

Let's say that doing a GET on http://example.org/path/doc.xml returns

<doc>
  <div xml:base="http://example.org/1/a.xml">
    <p id="x">Some text</p>
  </div>
  <div xml:base="http://example.org/2/b.xml">
    <p id="y"><a href="#x">LinkX</a></p>
    <p><a href="#y">LinkY</a></p>
  </div>
</doc>

The old text says:

   2) If the path component is empty and the scheme, authority, and
      query components are undefined, then it is a reference to the
      current document and we are done.

That seems clearly to say that the first link, LinkX, points to
the "p" with ID "x" in the first div.

Under the new wording, #x becomes http://example.org/2/b.xml#x and it
seems equally clear that that does not point to the "p" with ID "x" in
the first div.

That's a change.

I do see that #y points to the "p" with ID "y" in the second div
regardless of which interpretation is used.

| In any case, the change is needed for consistent interpretation of
| URI references in non-document-retrieval conditions (e.g., SemWeb).

If we need to make a change, that's fine, or at least, that's a point
for discussion. But I don't think we can claim not to be making a
change.

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@Sun.COM / XML Standards Architect / Sun Microsystems, Inc.
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
Any unauthorized review, use, disclosure or distribution is prohibited.
If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

Received on Friday, 30 January 2004 17:21:03 UTC