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

Re: draft-rsalz-qname-urn

  • To: David Orchard <dorchard@b...>
  • Subject: Re: draft-rsalz-qname-urn
  • From: Elliotte Harold <elharo@m...>
  • Date: Fri, 17 Dec 2004 15:00:20 -0500
  • Cc: John Cowan <cowan@c...>, Rich Salz <rsalz@d...>, xml-dev@l..., dorchsrd@b...
  • In-reply-to: <32D5845A745BFB429CBDBADA57CD41AF0C7FDEBD@u...>
  • References: <32D5845A745BFB429CBDBADA57CD41AF0C7FDEBD@u...>
  • User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.3) Gecko/20040910

qname example
David Orchard wrote:

> Why is that so?  Doesn't the URN spec allow names to define their own
> equivalence rules, such as %44 is different than D?


It's not the URN spec that's at issue here. It's the namespaces spec. 
Namespaces in XML 1.1 is quite explicit about this:

The IRI references below are all different for the purposes of 
identifying namespaces, since they differ in case:

     * http://www.example.org/wine
     * http://www.Example.org/wine
     * http://www.example.org/Wine

The IRI references below are also all different for the purposes of 
identifying namespaces:

     * http://www.example.org/rosé
     * http://www.example.org/ros%c3%a9
     * http://www.example.org/ros%c3%A9
     * http://www.example.org/ros%C3%a9
     * http://www.example.org/ros%C3%A9

As are these:

     * http://www.example.org/~wilbur
     * http://www.example.org/%7ewilbur
     * http://www.example.org/%7Ewilbur

The original namespaces spec is not quite as explicit about this, but 
the practice is the same.

But the URI spec does come into this as well, and the URI spec says that 
http://www.example.org/~wilbur and http://www.example.org/%7ewilbur are 
the same. So we have to resolve percent escapes before extracting the 
namespace names from the qname URN. There's a nasty impedance mismatch 
here, though fortunately it doesn't come up too often in practice yet. 
However, it probably will soon as IRIs using non-ASCII characters become 
more commonly used for namespace names.


-- 
Elliotte Rusty Harold  elharo@m...
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim

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.