11.10. The restriction Element

The restriction element provides functionality for deriving a complex type that restricts a base complex type. For simple content, these restrictions may only specify constraining facets that apply to simple content. For complex content, the restriction permits altering attributes of nested element or attribute types.

Tip

The use of the final attribute on the base complex type may prohibit the restriction of that complex type. In addition, the use of a fixed attribute on a constraining facet of the base complex type may prohibit further modification of that constraining facet.

Listing 11.15 demonstrates how to use a restriction element for complex content. The baseAssemblyCatalogEntryType is a derivation of baseCatalogEntryType ...

Get XML Schema Complete Reference, The 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.