W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2009

[XML Schema 1.1] Order of openness

From: Costello, Roger L. <costello@mitre.org>
Date: Sun, 7 Jun 2009 07:51:32 -0400
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB5003FD40C1B7@IMCMBX3.MITRE.ORG>

Hi Folks,

When declaring open content, the "amount" of openness is determined by the value of the mode attribute:

   <openContent mode="_____">
       ...
   </openContent>

Here is the order of openness:

interleave is greater than suffix is greater than none


Thus, there are only two rules to remember regarding a subtype and its parent type:

    Derive-by-extension: a subtype cannot 
    specify openness that is less than its 
    parent's openness.

    Derive-by-restriction: a subtype cannot 
    specify openness that is greater than its 
    parent's openness.


Do you agree?

/Roger
Received on Sunday, 7 June 2009 11:52:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:12 GMT