W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Re: The minimum valid anonymous complex type declaration

From: Eddie Robertsson <eddie@allette.com.au>
Date: Thu, 06 Dec 2001 09:35:54 +1100
Message-ID: <3C0EA14A.6441D05@allette.com.au>
To: Stanley Guan <Stanley.Guan@oracle.com>
CC: Schema XML <xmlschema-dev@w3.org>
> What's the minimum valid anonymous complex type declaration embedded
> in
> a valid element declaration?
> Is it like this:
>      <xs:element name="name1">
>          <xs:complexType/>
>      </xs:element>
> and what does it mean?

Yes, that should be the minimum anonymous type declaration enbedded in
an element declaration and the result will be an empty element with no
The reason for this is that <complexType/> is shorthand for:

      <restriction base="anyType">

So, this means we have a complexType that restricts the anyType and
since we don't declare any elements or attributes we get an empty
content model.

Received on Wednesday, 5 December 2001 17:28:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:56 UTC