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

elementFormDefault

From: Kresimir Karamazen <k.karamazen@trinite.nl>
Date: Mon, 27 Oct 2008 11:23:34 +0100
To: xmlschema-dev@w3.org
Message-Id: <1225103014.2988.22.camel@localhost.localdomain>
elementFormDefault


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@trinite.nl
Website: www.trinite.nl 
Received on Monday, 27 October 2008 15:55:52 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.