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

RE: [XSV and XML Spy] mixed="true" and <simpleContent/>

From: Dare Obasanjo <dareo@microsoft.com>
Date: Thu, 6 Jun 2002 08:27:27 -0700
Message-ID: <8BD7226E07DDFF49AF5EF4030ACE0B7E06621C8B@red-msg-06.redmond.corp.microsoft.com>
To: <asirv@webmethods.com>, <xmlschema-dev@w3.org>

> -----Original Message-----
> From: Asir S Vedamuthu [mailto:asirv@webmethods.com] 
> Sent: Thursday, June 06, 2002 5:09 AM
> To: xmlschema-dev@w3.org
> Subject: [XSV and XML Spy] mixed="true" and <simpleContent/>
> Hi,
> <xsd:complexType name="a" mixed="true">
>   <xsd:simpleContent>
>    <xsd:extension base="xsd:string"/>
>   </xsd:simpleContent>
> </xsd:complexType>
> This fragment is a complex type with simple and mixed 
> content. I do not believe that this combination is valid. 
> However, XSV and XML Spy say that it is valid. Did anyone 
> else bump into this?

What part of the W3C XML Schema recommendation do you think makes this
invalid? I looked at section 3.4 of the Structures document[0] and
couldn't find any place where having a mixed attribute with the value of
true and a complexType with simpleContent is disallowed.

Furthermore the rules for determining the {content type} of the
complexType are fairly unambiguous. The simpleType derivation takes
precedence over the mixed attribute (which in fact is ignored and not
factored in at all in determining the content type).   

[0]  http://www.w3.org/TR/xmlschema-1/#Complex_Type_Definitions

Never eat yellow snow.

This posting is provided "AS IS" with no warranties, and confers no
Received on Thursday, 6 June 2002 11:28:00 UTC

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