Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: reference to element, elementFormDefault unqualified

From: Jeff Rafter <lists@----------.--->
To: Oliver Kusche <oli@----.--->
Date: 4/13/2006 2:49:00 AM


Oliver Kusche wrote:
> 
> Thanks for pointing this out. I'm merely setting
> elementFormDefault="unqualified" to hide namespaces from my instance 
> documents
> so that it's not visible which component an element belongs to (making 
> instance
> documents a lot more readable).
> 
> So do you suggest that's not really a good practice?

Well, its not really possible. Global elements are always qualified by 
the targetNamespace regardless of the form or elementFormDefault 
attributes. Now, if the targetNamespace is empty than there will be no 
qualification in the instance document.

<Odd techincal point>
Michael mentioned using Chameleon namespace design to get around this... 
but that won't help. As soon as a no-namespace global schema component 
is included into a schema that declares a targetNamespace it takes on 
that namespace (meaning it will need to be qualified in the instance).
</Odd technical point>

So in reality, if you don't want to have namespaces in your instance 
documents you have two choices: (1) don't use targetNamespaces in any of 
your XML Schemas for the document (2) don't use XML Schemas

I also agree with Michael-- I have never fully understood the decision 
that gives us this strange situation.

All the best,
Jeff Rafter



From mike@s... Thu Apr 13 18:05:50 2006
Received: from aji.w


transparent
Print
Mail
Digg
delicious
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