Home >Online Product Documentation >Table of Contents >Defining a simpleType in the Diagram View
This section describes the procedures for defining simpleTypes in the Diagram view. It covers the following topics:
Many of the editing features used in this section are described in Defining an XML Schema Using the Diagram Tab - Getting Started. You should familiarize yourself with that material if you have not done so already.
This topic provides the steps for defining an atomic simpleType in the Diagram view.
schema
The new simpleType appears in the diagram; its properties are displayed in the Properties window.
QuickEdit is a feature that combines commonly-performed editing operations, such as specifying a restriction for a simpleType. You can also perform this operation in a different way. See Specifying a Restriction for a simpleType - Manually.
simpleType
The Type Derivation dialog box appears.
The Type Derivation dialog box displays the W3C XML Schema, as well as any referenced XML Schemas.
The simpleType is updated with an element that identifies the restricted type:
In the lower half of the Properties window, Stylus Studio displays a section that allows you to specify facets - values that define the constraint on the range of values allowed by the base type.
Stylus Studio displays only those facets that are allowed for the base type you selected. For a description of each facet, see About Facet Types for simpleTypes.
This procedure describes how to specify a restriction for a simpleType manually. It is an alternative to the procedure described in Specifying a Restriction for a simpleType - QuickEdit.
The simpleType is updated with a restriction icon:
At the bottom of the Properties window, Stylus Studio displays a section that allows you to specify facets - values that define the constraint on the range of values provided by the base type.
The procedure for defining list and union simple types is similar:
list
union
simpleType'
annotation
How you perform this last step depends on whether you are adding new or existing annotation or simpleType nodes to the list or union.
SimpleType-6
SimpleType-3
Notice that the pointer changes shape when you place it over an appropriate target node.