OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Re: Why REST was Re: [xml-dev] URIs are simply names

[ Lists Home | Date Index | Thread Index ]

At 8:37 PM -0800 2/16/02, Joe English wrote:

>(P.S. to Simon -- it sounds like using java.net.URI instead
>of lava.lang.String for URIs is just making more work for
>yourself unless you're going to be resolving them.  In fact
>the equals() method isn't even correct for XML namespace names.)

This thread is beginning to convince me that a namespace name is not 
a URI. If such a basic notion as identity/equality is different for 
URIs and namespace names, then they may in fact not be the same 
thing. They may just happen to share the same grammar.

In this case, the URI spec RFC 2396 states, and I quote:

    In many cases, different URI strings may actually identify the
    identical resource. For example, the host names used in URL are
    actually case insensitive, and the URL <http://www.XEROX.com> is
    equivalent to <http://www.xerox.com>. In general, the rules for
    equivalence and definition of a normal form, if any, are scheme
    dependent. When a scheme uses elements of the common syntax,
    it will also use the common syntax equivalence rules, namely
    that the scheme and hostname are case insensitive and a URL with
    an explicit ":port", where the port is the default for the
    scheme, is equivalent to one where the port is elided.

That's clearly not true for http namespace names. Simon, perhaps your 
class should be called NamespaceName instead of URI?

| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS