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

Re: conplexType with mixed="true" and no content.

From: Pavani Mukthipudi <Pavani.Mukthipudi@Sun.COM>
Date: Fri, 12 Apr 2002 14:28:56 +0530 (IST)
Message-Id: <200204120858.g3C8wuF11481@blr-root.India.Sun.COM>
To: jeni@jenitennison.com
Cc: xmlschema-dev@w3.org

Jeni Tennison wrote :
> 
> You first have to choose between 1 and 2. If it's a restriction then
> choose 1, if it's an extension choose 2. If you choose 1, you then
> have to choose between 1.1 and 1.2. If 1.1.1, 1.1.2 or 1.1.3 is true,
> then choose 1.1, otherwise choose 1.2.
> 
> In this case, we choose restriction, and 1.1.1 is true, so the content
> of the complex type is empty. So I think that Kazumi is correct that
> the root element having content is invalid.
>   

Hi Jeni,

You are right according to the order given in the spec. 
But logically speaking, the content type of <xs:complexType mixed="true"/> 
should be _mixed_ with no element children.  

Isn't there a difference between <xs:complexType/> 
and <xs:complexType mixed="true"/> ? 

-Pavani

-- 

Pavani Mukthipudi
Sun Microsystems, Inc.

Phone: 080 - 2298989   Extn: 87390
Received on Friday, 12 April 2002 04:59:01 GMT

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