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

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:complexType name="DerivedType" mixed="true">
      <xs:restriction base="BaseType">
         <!-- NO simple type definition -->
Received on Wednesday, 12 June 2002 09:45:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC