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

RE: Just require URLs

  • From: "Jeffrey E. Sussna" <jes@k...>
  • To: "'Didier PH Martin'" <martind@n...>,"'XML Dev'" <xml-dev@i...>
  • Date: Tue, 1 Jun 1999 14:36:01 -0700

xml forward slash
There appear to be conflicts between RFC's 2396 (URI: Generic Syntax) and
2141 (URN Syntax). Interestingly, RFC 2396 is not specified as updating RFC
2141. In any case:

*Both specs agree that a URN must be preceded by the scheme "urn".

*RFC 2141 states that the forward-slash (and other reserved) character
should not be used in unescaped form, as its "applicability" is (or was at
time of writing, 5/97) still open to debate.

*RFC 2396, on the other hand, states that forward-slash (and other reserved)
character should not be used in unescaped form IF "the data...would conflict
with the reserved purpose". This seems to imply that it's ok to use "/"
unescaped if it denotes a hierarchical namespace.

*RFC 2396 APPEARS to state that an "authority" must be preceded by
double-forward-slash. It is not totally clear to me whether this applies to
the NID component of a URN.

First of all, I would be interested in opinions as to the above statements.
Secondly, I would be interested in opinions as to the advisability of going
ahead and using unencoded forward-slashes to denote hierarchy within a URN.
I need to denote such hierarchy, and it seems hard to believe that
forward-slash wouldn't be defined to denote such hierarchy. Thus encoding it
seems like a waste of time, effort, and an unnecessary loss of readability.

Jeff


> -----Original Message-----
> From: owner-xml-dev@i...
> [mailto:owner-xml-dev@i...]On Behalf Of
> Didier PH Martin
> Sent: Tuesday, June 01, 1999 12:12 PM
> To: 'XML Dev'
> Subject: RE: Just require URLs
>
>
> Hi Jonathan,
>
> Jonathan said:
>     Under the definition of URN in 2396, a URN is any URI
> whose intention is
> to reference an abstract resource, act primarily as a name,
> and/or not be
> retrievable via a network. Under the definition in 2396,
> "urn" defines a
> scheme/namespace (URI namespace) whose intention is to serve
> *only* for
> URNs, however the spec suggests that any scheme e.g. "http"
> can serve to
> define a URN, given the definition of URN in 2396 (part of
> which my earlier
> message quotes).
>
>     So, my reading of RFC 2396 and the XML namespace spec leads me to
> conclude that all URIs used as XML namespaces are properly
> URNs regardless
> of the URI scheme prefix.
>
> Didier says:
> This is not what RFC 2396 says. You are right when you say
> that a URI coudl
> be a URL or a URN. However a HTTP scheme cannot be considered as a URN
> because it is already part of the URL space.
>
> If however you create a name space having as NID "HTTP" then
> yes this would
> be a URN. However each "/" would have to be encoded. Thus, a
> URN cannot be
> with "/" as delimiters. Obviously we'll have to create a new RFC for
> hierarchical name spaces having "/" as delimiters but
> actually you would
> have to encode each "/". Thus your name space would look like:
>
> urn:http:domain.com%(hex for /)context%(hex for /)etc...
>
> The above URN confor to RFC 2141 specs. However the URL:
> http://domain.com/context/etc... do not conform to RFC 2141
> and thus cannot
> be said to be a URN.
>
> regards
> Didier PH Martin
> mailto:martind@n...
> http://www.netfolder.com
>
>
> xml-dev: A list for W3C XML Developers. To post,
mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN
981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following
message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.