W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

Inheritance of restriction facets?

From: zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN <michael.marchegay@rd.francetelecom.com>
Date: Thu, 1 Aug 2002 18:29:18 +0200
Message-ID: <0489A7888F080B4BA73B53F7E145F29A1B0B00@LANMHS20.rd.francetelecom.fr>
To: <xmlschema-dev@w3.org>

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 GMT

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