Chapter 3 Building XML Models


Deriving by list

You can derive an element or simple type by list to define it as a list of values of a specified data type.

Steps To define an element or simple type derivation by list:

  1. Open the property sheet of an element or simple type, and select List in the Derivation list.

    For elements, the Embedded type field is set to Simple.
  2. Click the Properties tool to the right of the Derivation box to open the list property sheet:
  3. Enter an ID and a type for the 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.
  4. Click OK to close the list property sheet and return to the element or simple type.

List property sheet General tab

The General tab contains the following properties:

Property Description
ID ID of the simple type list. Its value must be of type ID and unique within the model.
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 or element

 


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