[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

when is inheritance

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>
when is inheritance

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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.