[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Why is xml:base a URI *reference*?


reference uri
Eric van der Vlist wrote:
> On Thu, 2004-01-08 at 11:06, Henry S. Thompson wrote:
> 
>>Elliotte Rusty Harold <elharo@m...> writes:
>>
>>
>>>At 8:09 PM -0500 1/7/04, Jonathan Borden wrote:
>>>
>>>>Does anyone here know the reasoning behind this? In specific, why
>>>>does xml:base allow URI references (i.e. with fragment identifiers)
>>>>rather than simply using URIs (URIrefs sans fragment identifiers)?
>>>
>>>I seem to recall that the thinking was that relative URIs are only URI
>>>references, not true URIs; and URI references were used to enable
>>>this, not to enable fragment identifiers.
>>
>>That's my belief also.  IIRC, the RFC defines URI to be what you and I
>>would call an absolute URI.
> 
> 
> That makes sense, but how does that relate to the namespaces' URI
> references, then?
> 
> Is that an indication that the WG did really want to allow relative URIs
> or does "URI reference" have a different meaning in the namespaces
> specification?

It is equally likely they wanted to allow fragment identifiers. The 
guidance in the namespace spec is that URI references used as namespace 
identifiers should be globally unique, which is hard to do with a 
relative URI.

> I hope I am not restarting the most terrible XML-DEV permathread, but I
> hadn't understood clearly this difference between URI and URI references
> when this has been discussed.

The RFC 2396 definition:

URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]

> Also, this doesn't seem to be coherent either with WXS' definition of
> anyURI
> http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#anyURI that says:
> 
> "anyURI represents a Uniform Resource Identifier Reference (URI). An
> anyURI value can be absolute or relative..."
> 
> If the W3C has another definition of what are URIs and URI references
> than the IETF which seems to be the case, shouldn't that definition be
> used coherently in all the W3C specifications (instead of having some of
> them use the W3C definitions and some other use the IETF one)? 

The complete paragraph in WXS is: "anyURI represents a Uniform Resource 
Identifier Reference (URI). An anyURI value can be absolute or relative, 
and may have an optional fragment identifier (i.e., it may be a URI 
Reference)."

This is consistent with the IETF definition.

Bob Foster
http://xmlbuddy.com/

> Eric
> 
>>ht



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.