W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

rollback, underministic, unique?

From: Stanley Guan <Stanley.Guan@oracle.com>
Date: Fri, 07 Dec 2001 14:00:24 -0800
Message-ID: <3C113BF8.5C76B06E@oracle.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:25 GMT