XML White Papers
XML Schema: Creating More Building Blocks Using Object-Oriented Features
Overview In many cases, a vocabulary needs the ability to accept a variety of different content models. One has two options: one can try to do it using a single generic element name, or one can define a schema smart enough to deal with the possible content model. Since one cannot define multiple different content models for the same element (because of the Consistent Declaration Rule), one can either use xsi:type attributes in the instance documents, or one can define a content model wide enough to accommodate all the possibilities. Such a model would likely be wide enough to also accept combinations that one do not want.
| Publisher | O'Reilly Media | File Format | |
|---|---|---|---|
| Date Published | June 2002 | ||
| Format | Book chapters | ||
| Topics | |||



