- From: Avin Patel <vze49rz3@verizon.net>
- Date: Mon, 23 Dec 2002 16:38:38 -0500
- 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 UTC