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

Is this valid?

From: Dare Obasanjo <dareo@microsoft.com>
Date: Mon, 22 Jul 2002 10:37:02 -0700
Message-ID: <8BD7226E07DDFF49AF5EF4030ACE0B7E06621E1B@red-msg-06.redmond.corp.microsoft.com>
To: <xmlschema-dev@w3.org>

I think it is just want to make sure however.
 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    
    <xs:complexType name="A">
        <xs:sequence>
           <xs:element name="f"/>
           <xs:choice>
               <xs:choice minOccurs="1">
                   <xs:element name="a"/>
                  <xs:element name="b"/>
                </xs:choice>
                <xs:sequence minOccurs="0">
                    <xs:element name="a1"/>
                    <xs:element name="b1"/>
                </xs:sequence>
            </xs:choice>
       </xs:sequence>
    </xs:complexType>
 
   <xs:complexType name="B">
        <xs:complexContent>
            <xs:restriction base="A">
            <xs:sequence>
                <xs:element name="f"/>
                <xs:choice>
                    <xs:element name="a"/>
                    <xs:element name="b1"/>
                </xs:choice>
           </xs:sequence>
          </xs:restriction>
        </xs:complexContent>
    </xs:complexType>
</xs:schema>
Received on Monday, 22 July 2002 13:37:33 UTC

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