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?
  - ...?

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

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


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

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