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

RE: XML Schemas: Best Practices (touches XHTML modularization als o)

  • From: "Arnold, Curt" <Curt.Arnold@h...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Tue, 09 Jan 2001 10:55:13 -0700

xml schema multiple substitution groups
I had suggested making substitutionGroups a list of QNames as part of the feedback of the suggestion that became LC-96.  I don't have access to the schema WG's discussions on why an element being a
member of multiple substitution groups was considered undesireable.

If there was some compelling reason that the membership in substitution groups needed to exclusive, then providing open choice groups allows that to remain while providing an extensible content model
for those instances where member elements do not come from a single heirarchy.  If multiple substitution group memberships are allowed and the substitution group examplar has a type urType, then the
two become equivalent and there is no need for open choice groups.

Hard to tell from your description, you might be doing the equivalent of the adapter pattern from the Gang of Four or bring in generic behavior by aggregation instead of inheritance (probably more
likely).  I don't think that your composite elements are substituable any place the more generic components can appear.

If is definitely possible to design a system that uses adapters and aggregation to conform to a strictly single inheritance language.  The convolutions are such that most OOP languages have some sort
of support for one class being substituable for multiple more general bases.  Just try asking a Java developer if he would want to build a complex system using java if he were forbidden to use
"implements".  If is possible, but definitely not desirable.

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.