Re-defining external definitions

When part of a schema is stored in an external schema file, it can be included as described previously. But when defining a new type, based on a type in the included file, it is necessary to give the new type a different name. This may be inconvenient, and is avoided by using a 'redefinition' instead. The Redefine element contains a SchemaLocation attribute, which holds a URL reference that points to the schema file to be included. This element then contains any mixture of Annotation, SimpleType, ComplexType, AttributeGroup and Group elements to override definitions in the referenced file.

A feature of this approach is that external definitions in a file that has no target namespace can both be re-defined and ...

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.