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

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 UTC