Defining derivations

For example: the zipCode simple type, based on the xs:string data type, is

restricted to the following pattern: two uppercase letters, from A to Z, followed by a five-digit number, each digit ranging from 0 to 9.

Generated schema:

Creating a restriction on a simple type

You derive a simple type by restriction when you want to restrict the values of its base type.

™To create a restriction on a simple type:

1Double-click the name or the icon of a simple type in the Browser tree view.

or

Double-click the symbol of a simple type in the diagram. The simple type property sheet appears.

108

PowerDesigner

Page 120
Image 120
Sybase XML manual Creating a restriction on a simple type, ™ To create a restriction on a simple type, 108