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

RE: [XML Schema 1.1] Does mode="none" on a subtype nullify the openness of its parent type?

From: Michael Kay <mike@saxonica.com>
Date: Fri, 5 Jun 2009 18:57:05 +0100
To: "'Costello, Roger L.'" <costello@mitre.org>, <xmlschema-dev@w3.org>
Message-ID: <2CB83CF5DA8B4DE9927A0C4A55601FF3@Sealion>
RE: [XML Schema 1.1] Does mode="none" on a subtype nullify the    openness  of its parent type?
> > if the base type allows open content, then a type derived 
> from it by 
> > extension must also allow open content.
> 
> Now I'm really confused.
> 
> What value is mode="none"?
> 
> I thought that the point of mode="none" was to enable a 
> subtype to "turn off" the openness of its parent type? If 
> this is not the case, then what value is mode="none"?

You can turn off the open content when deriving by restriction, but not when
deriving by extension.

Makes sense really - restriction can only reduce the permitted content,
extension can only increase it.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 
Received on Friday, 5 June 2009 18:02:27 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.