Simple type derivations

A major feature of this standard is the ability it gives schema authors to create new simple data types that are specific to the document model being defined. A new data type is 'derived' from an existing type by first referencing an existing simple data type, then creating a new one that is either a restricted version or an extended version of that type (later it is shown how complex types can also be derived).

For example, it is possible to create a new numeric type that is based on the 'integer' type, but is constrained to a value between '5' and '50'. Conversely, the original type can be extended to allow lists of values, or by allowing the value to conform to one of several possible types. Once created, the new type ...

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.