To create a restriction on an element, simple type, or complex type:
-
Open the property sheet of an element, simple type, or complex type, and select Restriction in the Derivation list.

For elements and complex types, the Content field (and, in the case of an element, the Embedded type field) is set to Complex.
-
Click the Properties tool to the right of the Derivation box to open the restriction property sheet.
-
Type an ID and a base type for the restriction.
-
[simple types only] If you select Embedded type, the base type disappears and a simple type is created in the schema within the current simple type. Click Apply, and then the Properties tool beside the Embedded type box, to define a derivation and a base type for the embedded simple type.
-
[option – simple types only] Click the Detail tab and enter appropriate facets for the restriction (see Restriction property sheet Detail tab).
-
[option – simple types only] Click the Enumerations tab and enter appropriate enumerations for the restriction (see Restriction property sheet Enumerations tab).
-
[option – simple types only] Click the Patterns tab and enter appropriate patterns for the restriction (see Restriction property sheet Patterns tab).
-
Click OK to close the restriction property sheet and return to the element, simple type, or complex type.