Chapter 3 Building an XML model


Deriving by list

You derive a simple type by list when you want to define it as a list of values of a specified data type.

The General page of a simple type list property sheet displays the following properties:

Property Description
ID ID of the simple type list. Its value must be of type ID and unique within the model containing the simple type restriction
Type Data type for the list of values
Embedded Type If selected, the type disappears and a simple type is created in the schema within the current simple type

Steps To define a simple type derivation by list:

  1. Select List in the Derivation dropdown listbox of a simple type property sheet.
  2. Click Apply.
  3. Click the Properties tool beside the Derivation box.

    The simple type list property sheet appears.
  4. Enter an ID and a type for the simple type list.


    If you select Embedded type, the 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 type for the embedded simple type.
  5. Click OK.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.