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

Multiple inheritance

From: Mathieu DUBOS <md.ais40@wanadoo.fr>
Date: Wed, 28 Aug 2002 06:30:35 -0400 (EDT)
Message-ID: <3D6CA59C.6010105@wanadoo.fr>
To: xmlschema-dev@w3.org




Hi,

I'm looking for making a double inheritance and don't manage doing so.
What I would like is that an element inherits attributes from a first 
type defined in a xsd file, and also inherits attributes from a second 
type defined in a second xsd file.

I tried kind of things like :

   <xs:complexType name="Type0">
     <xs:complexContent>
       <xs:extension base="dt1:DataType1">
         <xs:extension base="dt2:DataType2"/>
         <xs:attribute name="comment" type="xs:string" use="required"/>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>

but errors occur when i parse a xml instance with xerces-j.

Someone could help me??
thx a lot

----
Mathieu DUBOS
Received on Wednesday, 28 August 2002 11:24:08 GMT

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