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

Re: Multiple inheritence in XML Schema

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Sat, 06 Apr 2002 11:06:55 +0200
Message-ID: <3CAEBAAF.1050904@dyomedea.com>
To: xmlschema-dev@w3.org

Chawla_Deepak@emc.com wrote:

> For some of the objects, I need to use multiple inheritence and I was
> wondering if XML Schema 1.0 has any support for this (or if there is a way
> around it). Most of the XML Schema books that I have refered to don't talk
> about multiple inheritence. If there is no support in XML Schema 1.0, is it
> being considered in later versions ?

I don't consider W3C XML Schema as strictly object oriented but rather 
as a projection of the object oriented paradigm on XML trees...

That being said, if by multiple inheritence you mean that you need to 
define content models which are combining pieces defined in different 
schemas, the most flexible way is probably to use element and attribute 
groups which can be combined together and redefined if needed.

I don't see how you could achieve this level of flexibility using 
complex types which are defined through what could be compared to Java 
subclasses (with no multiple inheritence).

Now, if you gave us an example of what you want to achieve, it could be 
easier to propose something ;=) ...

Hope this helps.


> thanks
> deepak.
See you in Barcelona.
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
Received on Saturday, 6 April 2002 04:07:25 UTC

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