W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2008

Empty complexType with mixed="true"

From: Shlomo Yona <S.Yona@F5.com>
Date: Tue, 18 Mar 2008 01:13:44 -0700
Message-ID: <AB313AF70F994447A667F4D942CA655717BAB574@excheight.olympus.f5net.com>
To: <xmlschema-dev@w3.org>

Hello,

I have the following example test based on XML schema w3c test suite:

Instance:

<?xml version="1.0"?>
<root>test</root>


Schema:

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:complexType name="fooType" mixed="1"/>
        <xs:element name="root" type="fooType"/>
</xs:schema>


I understand from the spec that empty complex type forbids any content, but apparently, mixed="1" overrides this and seems to allow textual content which is anySimpleType.

Is this a correct interpretation of the spec?

Thanks.

Shlomo.
Received on Tuesday, 18 March 2008 08:18:43 GMT

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