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


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:extension base="dt1:DataType1">
         <xs:extension base="dt2:DataType2"/>
         <xs:attribute name="comment" type="xs:string" use="required"/>

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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:58 UTC