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

RE: redefine and target namespace

From: Michael Kay <mike@saxonica.com>
Date: Sun, 25 Oct 2009 18:51:17 -0000
To: <lists@fgeorges.org>, <xmlschema-dev@w3.org>
Message-ID: <B1016FC47D0F4557A1DFD163B345311A@Sealion>
RE: redefine and target namespace

> I thought the element 'b' was defined in the target namespace, but it
seems it has to be in no namespace.

Just as if you didn't use redefine, your local element declaration will only
be in the target namespace if you specify elementFormDefault="qualified" on
your xs:schema element. (Or, of course, form="qualified" on the local
element declaration itself, but no-one ever does that.) 

> Is it really the intent of the spec?

Yes. I've never heard an adequate explanation of why this extraordinary
decision was made, but in practice everyone changes the default by using
elementFormDefault="qualified".

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

 
Received on Sunday, 25 October 2009 18:51:50 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.