W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2008

when is inheritance from xs:anySimpleType allowed?

From: Tobias Koenig <tobias.koenig@trolltech.com>
Date: Tue, 18 Nov 2008 09:59:19 +0100
To: xmlschema-dev@w3.org
Message-Id: <200811180959.19564.tobias.koenig@trolltech.com>

Hej,

in which case is it allowed to derive a simpleType or complexType from 
xs:anySimpleType?

I found the following cases:

    <xs:simpleType name="t1">
        <xs:restriction base="xs:anySimpleType" />
    </xs:simpleType>

    <xs:complexType name="ct1">
	<xs:simpleContent>
         <xs:extension base="xs:anySimpleType" />
        </xs:simpleContent>
    </xs:complexType>

    <xs:complexType name="ct2">
	<xs:simpleContent>
         <xs:restriction base="ct1" >
         </xs:restriction>
        </xs:simpleContent>
    </xs:complexType>

Are they all valid?

Ciao,
Tobias
Received on Tuesday, 18 November 2008 08:55:08 GMT

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