[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Substitution groups vs. type 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|