Chapter 3 Working with an XML model

Existence of component

A redefine must contain at least one of the following items: simple type, complex type, group or attribute group.

Manual correction

Automatic correction

Add items to the redefine

 

 

Key check

During a key check, the following object controls are made.

Key name and code uniqueness

An element cannot contain two keys with identical names and/or codes.

Manual correction

Automatic correction

Rename one of the keys

Renames the key by appending a

 

number to its name or code

 

 

Existence of fields

A key must contain at least one field.

Manual correction

Automatic correction

Add at least one field to the key or delete

Deletes unassigned key

the key. For example: @numEmployee

 

 

 

For more information on fields, see section Defining an identity constraint field in chapter Building an XML model.

Undefined selector

You must define an XPath expression for a key selector attribute.

 

Manual correction

Automatic correction

 

 

In the key property sheet, define an

 

XPath expression for the selector

 

 

 

attribute. For example:

 

 

 

s:company/s:employee

 

 

 

 

XSM User's Guide

159

Page 171
Image 171
Sybase XML manual Key check, Existence of component, Key name and code uniqueness, Existence of fields, Undefined selector