Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Why does the default namespace not apply to attributes?

From: Nanda Kol <nandakol@-------.--->
To: <xmlschema-dev@--.--->
Date: 8/16/2007 3:33:00 PM
=0A=
=0A=
All,=0A=
=0A=
 =0A=
=0A=
The=0A=
following question is about the rationale for the difference in approach=0A=
between elements and attributes with regard to namespaces.=0A=
=0A=
 =0A=
=0A=
In order to=0A=
promote reuse of XML artifacts within our organization, a set of=0A=
recommendations has been specified for XML Schema documents design. One of =
the=0A=
recommendations is that every XML Schema document should have a target=0A=
namespace. However, after some experiments and investigation we learnt that=
=0A=
this namespace does not apply to attributes, which means that the use of a=
=0A=
target namespace results in attributes and elements being in different conc=
eptual=0A=
spaces, which seems counter-intuitive. =0A=
=0A=
 =0A=
=0A=
We have=0A=
been wondering what could be the rationale behind this, but couldn=92t find=
 the=0A=
answer. Hopefully, you can provide it or you know where to search for it.=
=0A=
=0A=
 =0A=
=0A=
Moreover,=0A=
if you can provide us any directions on the best approach  (i.e. set attrib=
uteFormDefault to =93qualified=94,=0A=
use global attribute declarations, or else) with respect to reusability, th=
is=0A=
would be more than welcome.=0A=
=0A=
 =0A=
=0A=
Thanks in=0A=
advance,=0A=
=0A=
Nanda
_________________________________________________________________
Make every IM count. Download Windows Live Messenger and join the i=92m Ini=
tiative now. It=92s free.=A0
http://im.live.com/messenger/im/home/?source=TAGWL_June07=


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent