Inheritance of restriction facets?

Hi all,

I have a question concerning restriction facets. 
When a derivation by restriction of a simpleType is performed, are 
the facets of the base type inherited by the deriving type?

For example, which content do the following schema allow for bar element?
  - A, AA and AAA?
  - AA and AAA?
  - ...?

<schema>
  <simpleType name="foo">
    <restriction base="string">
      <minLength value="2"/>
    </restriction>
  </simpleType>

  <element name="bar">
    <simpleType>
      <restriction base="foo">
        <enumeration value="A"/>
        <enumeration value="AA"/>
        <enumeration value="AAA"/>
      </restriction>
    </simpleType>
  </element>
</schema>

Thanks.

--
Michaël Marchegay, Stagiaire France Telecom R&D du 11/02/2002 au 26/07/2002
Sous la responsabilité d'Olivier Dubuisson
DTL/TAL - 22307 Lannion Cedex - France

Received on Thursday, 1 August 2002 12:29:19 UTC