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

Re: Mixed content woes (

From: Francis Brouns <francis.brouns@ou.nl>
Date: Tue, 19 Nov 2002 09:23:54 +0100
Message-ID: <001101c28fa4$ffe85560$91b01491@otecdev.pwo.ou.nl>
To: <xmlschema-dev@w3.org>

Hello Stuart,

I have problems getting a mixed content model to work as well. My model is
rather straightforward. Element x refers type x. Type x is defined as mixed
model, and a choice of 3 elements. One of the elements is text-only, one has
a complex type and the third is empty but references an attribute group. The
schema validates in several parsers, but Xml Spy, Turbo XML and XSV do not
allow any text in element x.

<xs:element name="x" type="xtype"/>
<xs:complexType name="xtype" mixed="true">
    <xs:element ref="a"/>
    <xs:element ref="b"/>
    <xs:element ref="c"/>
<xs:element name="a" type="xs:string"/>
<xs:element name="b" type="btype">
<xs:element name="c">
    <xs:attributeGroup ref="attr.ref"/>

Received on Tuesday, 19 November 2002 03:22:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:07 UTC