Chapter 3 Building an XML model


Deriving by extension

You derive a complex type by extension when you want to extend the values of its base type.

For example:


USaddress is a derivation by extension of the address complex type.

Generated schema:


Defining extension general properties

The General page of an extension property sheet displays the following properties:

Property Description
ID ID of the extension. Its value must be of type ID and unique within the model containing the extension
Base Type Data type on which the extension is based

Steps To define a derivation by extension:

  1. Select Extension in the Derivation dropdown listbox of an element or a complex type property sheet.

    In the case of an element property sheet, the Embedded type and Content boxes are set to Complex.

    In the case of a complex type property sheet, the Content box is set to Complex.
  2. Click Apply.
  3. Click the Properties tool beside the Derivation box.

    The extension property sheet appears.
  4. Type an ID and select a base type.
  5. Click OK.

 


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