Chapter 4 Working with an XML model


Model checks

This check only applies to models built on a schema.

The following XML model checks are made on models:

Check Description and Correction
Identifier uniqueness Two or more objects cannot have the same identifier (ID).

Manual correction: Give a unique identifier to each object

Automatic correction: None
Undefined identifier You must define an identifier (ID) for each object in the model.

Manual correction: Define an identifier for each object

Automatic correction: None
Shortcut code uniqueness Two shortcuts with the same code cannot be in the same namespace.

Manual correction: Change the code of one of the shortcuts

Automatic correction: None
Undefined target namespace You should define a target namespace to your model.

Manual correction: Type a URI for the Target Namespace property in the Detail tab of the model property sheet

Automatic correction: None
Missing namespaces There should be at least one namespace defined for the model.

Manual correction: Type a URI and a prefix in the Namespaces tab of the model property sheet

Automatic correction: Adds the target namespace URI and a prefix "ns" followed by a number (e.g. "ns1")

 


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