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] escaping QName interlopers

[ Lists Home | Date Index | Thread Index ]

uche.ogbuji@fourthought.com (Uche Ogbuji) writes:
>> jcowan@reutershealth.com (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




 

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

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