Re: extraneous :'s?

Doug Orleans <[email protected]> Fri, 8 Dec 2006 14:11:38 -0500
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <[email protected]>
Jonathan A Rees writes:
 > I haven't recently looked at the XML spec to see what it has dictates  
 > about the relations between namespaces, Qnames, and URI's - I was  
 > hoping someone here would save me the trouble. Is concatenation  
 > strictly required by XML? E.g. if you write xmlns:foo=abc and  
 > xmlns:bar=abcde, are the Qnames foo:defg and bar:fg *required* to be  
 > considered interchangeable?

According to the XML Namespaces spec [1], an "expanded name" is simply
a pair of <namespace-name, local-part>.  The fact that RDF
concatenates these to form URI references is just something peculiar
to RDF.  I think most other XML languages treat the namespace names as
atomic black-box objects that can only be compared for equality (using
URI reference comparison).

[1] http://www.w3.org/TR/REC-xml-names/#dt-expname

[email protected]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV