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

Re: simpleContent via mixed content restriction w/o any simpleType

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 18 Jun 2002 11:39:03 +0100
To: Tom Moog <tmoog@sarvega.com>
Cc: xmlschema-dev@w3.org
Message-ID: <f5blm9cub08.fsf@cogsci.ed.ac.uk>

Tom Moog <tmoog@sarvega.com> writes:

> 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>

I agree that this case is not covered by the existing mapping rules in 
the REC, and will need to be clarified in the context of the recent WG 
decision allowing derivation of simpleContent from mixed emptiable
complexContent.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2002, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Tuesday, 18 June 2002 06:39:14 GMT

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