![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: Diamond problem using extensions and substitution groups [Thread Next] RE: Diamond problem using extensions and substitution groupsTo: "Michael Kay" <mike@--------.---> Date: 8/16/2006 10:24:00 AM 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 -------------------------------------- From easirois@r... Thu Aug 17 22:56:36 2006 Received: from lisa.w | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
