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

Substitution groups vs. type inheritance

  • From: Julio Andrade <jandrade@e...>
  • To: xml-dev@l...
  • Date: Thu, 14 Jun 2001 11:45:14 -0700

substitution inheritance
Hello,

substitution groups and type inheritance seem to provide similar 
capabilities. What are differences? When should I use one 
or the other?

in common:

  both are substitution mechanisms 
    use instance of derived where base expected/use substitute 
    where head expected

  the substitution is restricted to one to many 
    one base, multiple derived/one head, multiple substitutes

  substitution is restricted to same or derived type in both cases
    (if the type differs, to be able to use substitution groups 
     you must have defined a type hierarchy anyways!?)

  both can be defined across namespaces

different:

  in substitution groups you are working with elements, versus types 
  in type inheritance (not sure about implications of this).

  substitution groups are based on global types + references in 
  local elements. This makes for ugly instance documents if using 
  unqualified locals.


(I searched the archives, but couldn't find a discussion on this. 
If I missed something pl. send a URL)

Thanks,
Julio



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.