O'Reilly logo

XML Companion, The, Third Edition by Neil Bradley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required