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

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>
Why does the default namespace not apply to attributes?


All,

 

The
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.

 

Moreover,
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
advance,

Nanda
_________________________________________________________________
Make every IM count. Download Windows Live Messenger and join the i’m Initiative now. It’s free. 
http://im.live.com/messenger/im/home/?source=TAGWL_June07
Received on Thursday, 16 August 2007 16:39:47 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.