- From: Jeff Rafter <jeffrafter@definedweb.com>
- Date: Wed, 11 Jul 2001 10:25:09 -0700
- To: "Bruno Chatel" <bcha@chadocs.com>
- Cc: <xmlschema-dev@w3.org>
I don't know of a way to do multiple inheritance with complexTypes explicitly but with simpleTypes you can use the union construct. The way this type of thing is typically handled is to use named groups. Something along these lines: <xs:schema> <xs:group name="t1Group"> <xs:sequence> <xs:element name="foo"/> </xs:sequence> </xs:group> <xs:group name="t2Group"> <xs:sequence> <xs:element name="bar"/> </xs:sequence> </xs:group> <xs:complexType name="t1Type"> <xs:sequence> <xs:group ref="t1Group"/> </xs:sequence> </xs:complexType> <xs:complexType name="t2Type"> <xs:sequence> <xs:group ref="t2Group"/> </xs:sequence> </xs:complexType> <xs:complexType name="tAllType"> <xs:sequence> <xs:group ref="t1Group"/> <xs:group ref="t2Group"/> </xs:sequence> </xs:complexType> </xs:schema> Good Luck, Jeff Rafter Defined Systems http://www.defined.net XML Development and Developer Web Hosting ----- Original Message ----- From: "Bruno Chatel" <bcha@chadocs.com> To: <xmlschema-dev@w3.org> Cc: <bcha@chadocs.com> Sent: Wednesday, July 11, 2001 6:55 AM Subject: Multiple extension ? > Hi, > I am searching a way for declaring multiple extension in a complexType definition. > For example, if I have 2 complexTypes t1Type and t2Type defined, I would like > to define tAllType like an extension of t1Type and t2Type. > Sorry but I did not find a response to this . > > Thanks in advance; > > -- bruno -- > ---------------------------------------- > Bruno Chatel > Tel : (+33)[0] 4 96 11 14 57 > Email : bcha@chadocs.com > ---------------------------------------- > > >
Received on Wednesday, 11 July 2001 13:25:38 UTC