W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2002

Multiple Inheritance in XML Schema

From: by way of <Hans.Teijgeler@inter.nl.net>
Date: Tue, 19 Nov 2002 11:29:01 -0500
Message-Id: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

Dear All,

We are working on what we call <www.infowebml.htm>InfowebML, offically to 
be called ISO 15926-7, in which we standardize data exchange and (lifetime) 
data integration on the basis of the data model defined in 
<http://www.matthew-west.org.uk/iso15926-2/>ISO 15926-2.

In that data model, written in EXPRESS, we see entity types that are the 
subtype of more than one other entity type, i.e. we have multiple 
(attribute) inheritance. We have represented the entire data model in XML 
Schema, with one exception: that multiple inheritance, because it appears 
to us that XML Schema cannot handle that.

Let me give a simple example of impossible code (because of the double 

<?xml version="1.0" encoding="UTF-8"?>
elementFormDefault="qualified" attributeFormDefault="unqualified">
      <xs:complexType name="parent_1">
            <xs:attribute name="attribute_p1-1" type="xs:string" 
            <xs:attribute name="attribute_p1-2" type="xs:boolean" 
      <xs:complexType name="parent_2">
            <xs:attribute name="attribute_p2-1" type="xs:decimal" 
            <xs:attribute name="attribute_p2-2" type="xs:integer" 
      <xs:complexType name="child">
                  <xs:extension base="parent_1"/>
                  <xs:extension base="parent_2"/>

I seek a workaround for this problem, that not only allows me to inherit 
all 2+2 attributes, but also let 'child' be a true subtype of both 
'parent_1' AND of           'parent_2'.

The latter is important in cases where a key-keyref Identity Constraint in 
the XML Schema 'refer's to, for example, 'parent_2' and where in the 
derived XML file reference is made to an instance of 'child' (which should 
pass validation).

Can anyone help me?

Hans Teijgeler, Fluor Corp. 
Received on Tuesday, 19 November 2002 11:40:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:59 UTC