Sybase XML manual Deriving by union, ™ To define a simple type derivation by list, 113

Models: XML

1 290
Download 290 pages 48.58 Kb
Page 125
Image 125

Chapter 2 Building an XML model

™To define a simple type derivation by list:

1Select List in the Derivation dropdown listbox of a simple type property sheet.

2Click Apply.

3Click the Properties tool beside the Derivation box. The simple type list property sheet appears.

4Enter 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.

Deriving by union

You derive a simple type by union when you want to define it as a collection of built-in and simple data types.

XSM User's Guide

113

Page 125
Image 125
Sybase XML manual Deriving by union, ™ To define a simple type derivation by list, 113