W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2003

RFE XML Schema 1.1: Allow <simpleContent> to be child of <sequence>

From: by way of <spencer_leon@yahoo.com>
Date: Wed, 08 Jan 2003 06:29:16 -0700
Message-Id: <5.1.0.14.1.20030108062913.029d4d00@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>




Problem: Current version 1.0 does not allow you to
control format/position/count of text nodes in mixed
content (i.e. <complexType mixed="true"/>.

Solution: Allow <simpleContent> element to be a child
of <sequence>. When included as a child of <sequence>,
the child <extension> element value and attributes
should be ignored. Only the <restriction> child
element should be processed. "minOccurs, "maxOccurs",
and "type" attributes should be allowed to be
specified <simpleContent> element.

Usage:
Example 1.
<complexType>
<sequence>
<simpleContent minOccurs="0" maxOccurs="unbounded">
<restriction base="integer">
</restriction>
</simpleContent>
<element name="p" type="target:PType" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>

Example 2.
<complexType>
<sequence>
<simpleContent type="integer" minOccurs="0"
maxOccurs="unbounded"/>
<element name="p" type="target:PType" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</complexType>

Regards,
spencer_leon@yahoo.com 
Received on Wednesday, 8 January 2003 08:31:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT