W3C home > Mailing lists > Public > uri@w3.org > January 2004

Re: #foo URI references

From: Norman Walsh <Norman.Walsh@Sun.COM>
Date: Fri, 30 Jan 2004 17:19:55 -0500
To: "Roy T. Fielding" <fielding@gbiv.com>
Cc: Paul Grosso <pgrosso@arbortext.com>, uri@w3.org
Message-id: <87k739t6yc.fsf@nwalsh.com>
/ "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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:07 UTC