- From: Tim Berners-Lee <timbl@w3.org>
- Date: Wed, 14 Jun 2000 17:38:36 -0400
- To: "Jonathan Borden" <jborden@mediaone.net>, <xml-uri@w3.org>
You wrote, "Now do you expect both "../2000/vocab#" relative URIs to be *absolutized* wrt the base URI and compared? Of course, is the strings are considered to be URI references. The URI ref is just a shorthand form for a URI, which is the namespace name. Relative URI references are (until;/unless one invents something different) expressed with respect to the URI of the document. "This is equally ridiculous." It is what would be intuitive to someone who had met images and links in HTML, or read the URI spec. Do you regard the use of relative URIs in <h:img src>="..."/> as ridiculous? Or were you pointing out hat in this case, as these are within the same document, the URI references are the same, clearly the URIs will be the same, no matter what the URI, and it would be of course fine for software to make that assumption? That was the sort of shortcut which David Turner's suggested wording allows. Tim -----Original Message----- From: Jonathan Borden <jborden@mediaone.net> To: xml-uri@w3.org <xml-uri@w3.org> Date: Tuesday, June 13, 2000 9:19 PM Subject: Context and... Re: the case of two bats Dan Connolly wrote (once upon a time) I'd like to discuss this issue in more black-and-white terms; here's an example that has clarified the situation for at least a few folks: Consider two documents, one at http://example.com/catalog/cat.xml : <inventory xmlns="../2000/vocab#"> <bat qty="100"/> <ball qty="200"/> </datasheet> and another at http://example.net/biology/animals.xml : <rodents xmlns="../2000/vocab#"> <bat/> <rat/> </services> Are the <bat/> elements in both documents associated with the same point in URI/web space? ---------------------------- The problem is that this logic is not unique to *baseURIs* only (in determining context). For example: <root> <catalog xmlns="http://example.com/catalog"> <inventory xmlns="../2000/vocab#"> <bat qty="100" /> <ball qty="200" /> </inventory> </catalog> <animals xmlns="http://example.net/biology"> <rodents xmlns="../2000/vocab#"> <bat /> <rat /> </rodents> </animals> </root> Now do you expect both "../2000/vocab#" relative URIs to be *absolutized* wrt the base URI and compared? This is equally ridiculous. The "context" needs to include the namespace of the parent element in order for relative URIs to make sense. Jonathan Borden
Received on Wednesday, 14 June 2000 17:37:06 UTC