W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2002

simpleContent via mixed content restriction w/o any simpleType

From: Tom Moog <tmoog@sarvega.com>
Date: Wed, 12 Jun 2002 08:44:39 -0500
Message-ID: <3D075047.EF1C71BC@sarvega.com>
CC: xmlschema-dev@w3.org


Consider the following example which is similar to a problem I posted
yesterday involving the interaction of mixed content and empty
restrictions.

It differs in that no simpleType is supplied for the restriction (see
xml comment).  Since there is no simple type for the restriction, is
this (a) invalid xsdl (b) simpleContent with type anySimpleType
(c) empty content despite the fact that it is simpleContent.

<xs:complexType name="BaseType" mixed="true">
     <xs:sequence minOccurs="0">
       <xs:element name="a" type="xs:string" />
    </xs:sequence>
</xs:complexType>

  <xs:complexType name="DerivedType" mixed="true">
    <xs:simpleContent>
      <xs:restriction base="BaseType">
         <!-- NO simple type definition -->
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
Received on Wednesday, 12 June 2002 09:45:40 GMT

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