W3C home > Mailing lists > Public > www-rdf-interest@w3.org > May 2001

RE: #rdf-ns-prefix-confusion

From: Lee Jonas <lee.jonas@cakehouse.co.uk>
Date: Wed, 16 May 2001 16:16:04 +0100
Message-ID: <51ED29F31E20D411AAFD00105A4CD7A77121@ZINGIBER>
To: "'Jan Grant'" <Jan.Grant@bristol.ac.uk>, "'Jason Diamond'" <jason@injektilo.org>
Cc: "'www-rdf-interest'" <www-rdf-interest@w3.org>
Jan Grant [mailto:Jan.Grant@bristol.ac.uk] wrote:

>Rather surprisingly, an unqualified attribute (in XML) doesn't inherit
>the NS of its element; nor is it implicitly qualified with the default
>NS. Instead, it lives in a global "unqualified" space. Yech.

This is not quite correct, it lives in a "per-element" space - just think of
DTD validation:

<!ATTLIST X about CDATA #FIXED "an attribute scoped by the 'X' element

<!ATTLIST Y about CDATA #FIXED "another distinct attribute scoped by the 'Y'
element type">

Given that for the purposes of DTD validation, "eg:Z" is not interpreted as
a QName (i.e. not converted to a namespace-URI+localpart pair):

<!ATTLIST eg:Z about CDATA #FIXED "yet another distinct attribute scoped by
the 'eg:Z' element type">

I assume all this is histerical (I mean historical ;-) - surely inherited
from SGML.  XML Namespaces came along after XML 1.0 and DTDs are unaware of
its semantics - hence one reason (among others) for the creation of XML
Schema for document validation, I suppose.



Received on Wednesday, 16 May 2001 11:16:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:36 UTC