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="_____">

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?

Received on Sunday, 7 June 2009 11:52:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:51 UTC