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

all group

From: Avin Patel <vze49rz3@verizon.net>
Date: Mon, 23 Dec 2002 16:38:38 -0500
Message-ID: <004a01c2aacb$a7f5ebf0$643a42d1@Avin>
To: "xmlschema" <xmlschema-dev@w3.org>

Hi All,
I want to use all group in all group. As I know all group can't have one of
the following:
1)can't contain other group
2)can't be contained in other group
3)must be at top level of complex type
4)can't occur multiple time

But I can always use all group in all group as following definition, is it
correct:

<xsd:complexType name="Type1">
   <xsd:all>
      <xsd:element name="elem1" type="xsd:integer"/>
      <xsd:element name="elem2" type="Type2"/>
  </xsd:all>
</complexType>

<xsd:complexType name="Type2">
  <xsd:all>
       <xsd:element name="elem1" type="xsd:integer"/>
       <xsd:element name="elem2" type="xsd:boolean"/>
  </xsd:all>
</complexType>

Thank you,
Avin Patel
Received on Monday, 23 December 2002 16:39:01 GMT

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