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

complexType derivation issue

From: Cedric Thienot <cthienot@acland.fr>
Date: Fri, 25 Aug 2000 15:58:28 +0200
Message-ID: <39A67B84.5F02ABFA@acland.fr>
To: www-xml-schema-comments@w3.org
Dear all,

I'm not very clear with a derivation constraint in the document
   XML Schema Part 1: Structures   W3C Working Draft 7 April 2000

You can find in 5.11 Complex Type Definition Constraints :
    Constraint on Schemas: Derivation Valid (Extension)
            If the {derivation method} is extension:
                If the {base type definition} is a complex type
                1.1.4  The {content type} of the complex type itself
must not be a simple type definition;

Does it mean that the following schema is not valid:

    <complexType name="t1" base="integer" derivedBy="extension">
        <attribute name="a1" base="integer"/>
    <complexType name="t2" base="t1" derivedBy="extension">
        <attribute name="a2" base="integer"/>

And if it is true, I don't really see why.

Thank you for your response,

Cedric Thienot.
Received on Friday, 25 August 2000 09:59:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:53 UTC