XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Multiple Inheritance in XML Schema

Ramkumar Menon wrote:
> Gurus,
>
> Why isn't there a straightforward mechanism for multiple inheritance
> in XML Schemas?
> What are the rationales for that design decision? Is it because it
> adds unnecessary complexity?
> I am sure there are strong reasons for this - am interested in knowing them.
> Ram
>   

One view might be that because of the use of grammars and the various 
grouping mechanisms already gives a very sophisticated multiple 
inheritance: and element could contain  A,B,C declared in one group, 
*AND* X,Y,Z declared in another group. 

However, others might quibble that this is not done as part of the type 
systems, and so at most it is a second-class facility in XSD.

Another group might take the opposite view and say that the use of 
grammars is actually precludes any system of mixins, because grammars 
are based on specifying sequences of continuingly contiguous particles: 
wildcards notwithstanding. (Contrast with Schematron, where a 'pattern' 
fits well as a mixin, without a formal inheritance mechanism.)

Cheers
Rick Jelliffe


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS