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

RE: difficulty understanding elementFormDefault attribute

From: Michael Kay <mike@saxonica.com>
Date: Thu, 17 Jul 2008 22:23:58 +0100
To: "'jorma kala'" <jjkk73@gmail.com>, <xmlschema-dev@w3.org>
Message-ID: <529C748350164131ABC8452D6B90447E@Sealion>
RE: difficulty understanding elementFormDefault attribute
"qualified" means that locally-declared elements are in the target namespace
of the schema document; in the case of a no-namespace schema document it
means that they are in no namespace (which is the same as saying
"unqualified".
 
Michael Kay
http://www.saxonica.com/


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of jorma kala
Sent: 17 July 2008 22:04
To: xmlschema-dev@w3.org
Subject: difficulty understanding elementFormDefault attribute


Hi,

there is an aspect of the elementFormDefault attribute that I don't
understand.
I read that  the value 'qualified' for elementFormDefault is  a directive to
instance documents for the elements declared in the schema to be namespace
qualified.
However, I have seen valid schemas that contain
elementFormDefault="qualified" but have no target namespace defined(do not
contain the attribute targetNamespace)

If no target namespace is defined, how can the elements that conform to the
given schema in an instance document be namespace qualified?

Thanks a lot. 
Received on Thursday, 17 July 2008 21:24:35 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.