W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

Inlined simle type in complex restriction derivation with simple content

From: by way of <Stefan.Wachter@gmx.de>
Date: Thu, 15 Aug 2002 19:20:37 -0600
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

Dear all,

The complex type derivation with a simple content restriction allows an
inlined simple type:

<xs:complexType name="D">
     <xs:restriction base="B">
         <xs:restriction base="xs:string"/>

In this situation the derived type D has two "base types": 1. The type B,
that must be a complex type with simple content and 2. the built-in string
type. Admittedly, "string" is not the base type of D but the base type of the
content type of the derived type.

In order that every valid instance of type D is also a valid instance of
type B it must be ensured that the content type of D is a restriction of the
content type of D. This is very difficult to check (think about pattern

In addition, there seems to be no mandatory reason why an inlined simple
type definition is allowed in simple content restrictions. The simple 
content of
the derived complex type can be restricted by facets in the usual way.

Therefore I propose to cancel this feature, i.e. not to allow inlined simple
types in simple content restrictions.

Thanks for your attention,
Received on Thursday, 15 August 2002 21:21:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:00 UTC