Defining a simpleType in the Tree View

This topic provides the steps for defining an atomic simpleType in the Tree view. When you are familiar with this procedure, you can adapt it to define list, union, and anonymous simpleTypes.

In the Tree view, to define an atomic simple type:
1. Click the node you want to define a simpleType for. This can be one of the following types of nodes:
m schema
m element
m attribute
m list
m union
2. In the left tool bar, click New simpleType . Stylus Studio displays an empty simpleType field as the last child of the node you selected. If you held down the Shift key, the field is the last sibling of the selected node.
3. Type a name for the new simpleType and press Enter.
4. In the left tool bar, click New Restriction . A restriction specifies the type that the new simpleType is derived from. This is the base type.
5. Double-click the simpleType that you want to base your new simpleType on.
7. Double-click the type of facet you want to specify.
8. In the Properties window, double-click the Value field.
9. Enter a value for the new facet.
 
Free Stylus Studio XML Training: