[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Multiple Inheritance in XML Schema

  • From: "Anthony B. Coates (XML-Dev)" <abcoatesecure-xmldev@y...>
  • To: XML-dev <xml-dev@l...>
  • Date: Sat, 27 Dec 2008 13:33:15 -0000

Re:  Multiple Inheritance in XML Schema
On Wed, 24 Dec 2008 08:18:00 -0000, Ramkumar Menon  
<ramkumar.menon@g...> wrote:

> 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

I think the more fundamental question is "Why isn't there a  
straightforward mechanism for multiple inheritance".  The C++ experiment  
with this was so disappointing that Java and C# dumped direct multiple  
inheritance.  I've never been a member of the W3C XML Schema Working  
Group, but I suspect they were influenced by this.

Additionally, with XML you have content order to worry about, and that  
complicates things.  You could append the content from one parent type to  
that of the other, but that would give you something very different to  
what multiple inheritance produces in C++.  Some people would say that it  
isn't multiple inheritance, and that is true - it's more composition that  
inheritance (and you can effectively implement it now using model groups).

I'm not sure there is a single reason why XML Schema doesn't support  
multiple inheritance, but I can see multiple reasons that would have  
weighted against the idea.

Cheers, Tony.
-- 
Anthony B. Coates
Director and CTO
Londata Ltd
UK: +44 (20) 8816 7700, US: +1 (239) 344 7700
Mobile/Cell: +44 (79) 0543 9026
Data standards participant: genericode, ISO 20022 (ISO 15022 XML),  
UN/CEFACT, MDDL, FpML, UBL.
http://www.londata.com/



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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.