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

Re: escaping QName interlopers


the interlopers point of view
uche.ogbuji@f... (Uche Ogbuji) writes:
>> jcowan@r... (John Cowan) writes:
>> >For RDF purposes, at least, the QName to URI mapping is done by
>> >concatenating the namespace name with the local name, so that if
>> >xmlns:xml is "http://www.w3.org/XML/1998/namespace" then xml:space
>> >is "http://www.w3.org/XML/1998/namespacespace".  This is ugly,
>> >wherefore most RDF-related namespace names end in either "/" or
>> >"#".  IMHO this is a fine convention.
>> 
>> IMHO this is a pathetic hack, and something unlikely to persist as
>> any kind of official conversion.  Its complete lack of coordination
>> with "how URI syntax works" per RFC 2396 is nothing short of
>> hilarious.
>
>What is a "pathetic hack"?  

String concatentation as the answer to QName/URI mapping is a pathetic
hack.  It pays no attention to the structure of URIs, it isn't
reversible, and it's easy to come up with broken cases.

>As Tim Bray pointed out, John Cowan is really referring to two very
>distinct matters above.

I find the underlying concatenation approach broken enough that the
difference between the two cases is a matter of poor or poorer.

>As always, I think that the "slasher" point of view does indeed
>correspond with URI, whereas the "hasher" POV often does not, although
>it can be stretched, with enough weasling, to look as if it does.

The slasher point of view could potentially be brought into
correspondence with URIs provided that someone took the time to define
that correspondence and outline cases (like any namespace URI that
includes a fragment identifier) where it doesn't work.  

The "hasher" POV seems to come from a view that's forgotten that hashes
indicate fragment identifiers, and that fragment identifier
interpretations are bound to representation media types.  It's difficult
to justify that approach if you have any recognition of URIs as having
features beyond a sequence of characters corresponding to some EBNF.

I really wish there was a good way to illustrate how funny URI
conversations are, in a Waiting for Godot kind of way.

-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com -- http://monasticxml.org

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.