- From: Stanley Guan <Stanley.Guan@oracle.com>
- Date: Fri, 07 Dec 2001 14:00:24 -0800
- To: Schema XML <xmlschema-dev@w3.org>
Hi,
Is the following "choice" group valid? Does it violate
"Unique Particle Attribution" constraint (3.8.6)?
Thx,
-Stanley
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.oracle.com/example"
xmlns:my="http://www.oracle.com/example">
<xsd:element name="a" type="xsd:string"/>
<xsd:element name="b" type="xsd:string"/>
<xsd:element name="c" type="xsd:string"/>
<xsd:element name="d" type="xsd:string"/>
<xsd:element name="e" type="xsd:string"/>
<xsd:element name="strings">
<xsd:complexType>
<xsd:choice>
<xsd:sequence>
<xsd:element ref="my:a"/>
<xsd:element ref="my:b"/>
<xsd:element ref="my:c"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element ref="my:a"/>
<xsd:element ref="my:b"/>
<xsd:element ref="my:d"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element ref="my:a"/>
<xsd:element ref="my:b"/>
<xsd:element ref="my:e"/>
</xsd:sequence>
</xsd:choice>
<xsd:attribute name="thingy" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Received on Friday, 7 December 2001 17:00:34 UTC