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

Re: Re: Why REST was Re: URIs are simply names


Re:  Re: Why REST was Re:  URIs are simply names
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@m... | 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/     |
+----------------------------------+---------------------------------+

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.