Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


elementFormDefault

From: Kresimir Karamazen <k.karamazen@-------.-->
To: xmlschema-dev@--.---
Date: 10/27/2008 3:58:00 PM

To be able to understand clearly the meaning of elementFormDefault I have written 
a short reminder.
Could you please tell me if the following doesn't hold true?

When we have

elementFormDefault="qualified" 

in some scope then in the scope: a locally declared element elm1 must
appear with a prefix (i.e. pre:elm1) or otherwise it must be
implicitly in a namespace of the parent element.  This means that a
locally declared element elm1 in such a scope (and unless it is used as
a root element, what is anyway not the intention) will never violate the
"qualified" restriction because
if it does not have a prefix than it has an implicit namespace of the
parent (which (namespace of the parent) may be empty). However it can
happen that the instance does not validate if the elm1 has not been
declared in that namespace.

When we have

elementFormDefault="unqualified" 

in some scope then in the scope: a locally declared element elm1 is
not allowed to appear with a prefix (i.e. unallowed is pre:elm1) .


                                    
________________________________________________________________________

K.Karamazen
Trinité Automatisering B.V.
Post-adres:  Postbus 189, 1420 AD Uithoorn
Bezoek-adres: J.N. Wagenaarweg 6, 1422 AK Uithoorn
Tel. : 0297 382460

Fax : 0297 273049
Email: kk@t...
Website: www.trinite.nl 





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