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

RE: Diamond problem using extensions and substitution groups

From: <noah_mendelsohn@us.ibm.com>
Date: Wed, 16 Aug 2006 14:24:01 -0400
To: "Michael Kay" <mike@saxonica.com>
Cc: "'Antoli, Leo'" <Leo.Antoli@Misys.com>, xml-dev@lists.xml.org, xmlschema-dev@w3.org
Message-ID: <OF7E5C7522.A7F49592-ON852571CC.0064CBDC-852571CC.00651312@lotus.com>
RE: Diamond problem using extensions and substitution groups

XML Schema made a design decision to go with single rather than multiple 
inheritance in the type system.  First of all, there are quite a few 
complexities that come of doing multiple inheritance in any language. Look 
careuflly at what C++ does to achieve this, for example, and you'll 
realize that it's tricky.  In the particular case of XML, there is the 
issue that the order of elements is significant.  If you inherit from 
complex combinations of base types, it can be rather tricky to figure out 
what a sensible order for the actual content would be, and whether users 
would even like it.

Sunstitution groups in XML Schema depend on the type system, so the 
constraint to single inheritance is "inherited" there.

Noah

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
Received on Wednesday, 16 August 2006 18:24:16 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.