Chapter 4 Working with an XML model


KeyRef checks

The following XML model checks are made on KeyRefs:

Check Description and Correction
KeyRef name and code uniqueness KeyRef names and codes must be unique in the model.

Manual correction: Modify the duplicate name/code

Automatic correction: Appends a number to the duplicate name/code
Undefined reference A keyRef must contain a reference to a key or a unique constraint.

Manual correction: In the keyRef property sheet, define a reference to a key or a unique constraint with the Reference list

Automatic correction: None
Existence of fields A keyRef must contain at least one field.

Manual correction: Add at least one field to the keyRef or delete the keyRef. For example: @numEmployee

Automatic correction: Deletes unassigned keyRef

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 keyRef selector attribute.

Manual correction: In the keyRef property sheet, define an XPath expression for the selector attribute. For example: s:company/s:employee

Automatic correction: None

For more information on XPath expressions, see section Defining an identity constraint selector in chapter Building an XML model.

 


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