Chapter 3 Building an XML model


Defining field general properties

The General page of a field property sheet displays the following properties:

Property Description
XPath An XPath expression relative to each element selected by the selector of the identity constraint. It identifies a single element (with a simple type) whose content or value is used for the identity constraint
Stereotype Sub-classification used to extend the semantics of an object without changing its structure. It can be predefined or user-defined
ID ID of the field. Its value must be of type ID and unique within the model containing the field

Steps To create an identity constraint field:

  1. Click the Fields tab of an identity constraint (unique, key or keyRef) property sheet.
  2. Click any empty line in the Fields page.

    An arrow appears at the beginning of the line.
  3. Type an XPath expression.
  4. Click Apply.
  5. Double-click the arrow left of the row.

    The field property sheet appears.
  6. Define the field properties in the different pages of the property sheet.
  7. Click OK.

 


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