Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: Composition by extension in namespaced schema >Thread Next - RE: Empty complexType with mixed="true" Empty complexType with mixed="true"To: <xmlschema-dev@--.---> Date: 3/17/2008 6:14:00 PM
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.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
