Chapter 3 Building an XML model


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.

Union general properties

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

Property Description
ID ID of the simple type union. Its value must be of type ID and unique within the model containing the simple type union
Member Types White space separated list of built-in data types. Values must be qualified names (See Glossary)

Union types properties

The Union Types page of a simple type union property sheet displays a list where you can add simple types using the Add Simple Type tool.

Steps To define a simple type derivation by union:

  1. Select Union 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 union property sheet appears.
  4. Type an ID and member types for the simple type union.
  5. Click OK.

 


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