W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2007

Why does the default namespace not apply to attributes?

From: Nanda Kol <nandakol@hotmail.com>
Date: Thu, 16 Aug 2007 15:32:31 +0000
Message-ID: <BAY116-W740BA9DCDE161A07F624BC3DF0@phx.gbl>
To: <xmlschema-dev@w3.org>



following question is about the rationale for the difference in approach
between elements and attributes with regard to namespaces.


In order to
promote reuse of XML artifacts within our organization, a set of
recommendations has been specified for XML Schema documents design. One of the
recommendations is that every XML Schema document should have a target
namespace. However, after some experiments and investigation we learnt that
this namespace does not apply to attributes, which means that the use of a
target namespace results in attributes and elements being in different conceptual
spaces, which seems counter-intuitive. 


We have
been wondering what could be the rationale behind this, but couldn’t find the
answer. Hopefully, you can provide it or you know where to search for it.


if you can provide us any directions on the best approach  (i.e. set attributeFormDefault to “qualified”,
use global attribute declarations, or else) with respect to reusability, this
would be more than welcome.


Thanks in

Make every IM count. Download Windows Live Messenger and join the i’m Initiative now. It’s free. 
Received on Thursday, 16 August 2007 16:39:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:43 UTC