Download Altova XMLSpy 2010

Transcript
Editing Views
Schema View
73
If you wish to define multiple field elements on an identity constraint, select the identity
constraint, click the Append or Insert icon (see Step 3 above), and select Field. An
empty Field entry box is added to the selected identity constraint. Enter the required
XPath expression in the Field entry box.
Note:
An ID can be assigned to any of these elements (that is, to the identity constraint, its
selector, and/or field/s). To assign an ID, select the element and, in the Details entry
helper, enter the ID in the id row.
Identity constraints in Content Model View
To view identity constraints in Content Model View, do the following:
1. In Schema Overview, select the global component for which you wish to create the
identity constraint and switch to the Content Model View of that component.
2. Ensure that the display of identity constraints is toggled on in the Schema Display
Configuration dialog (Schema Design | Configure View). This toggle switches on and
off the display of the identity constraints box in the design (see screenshot below). You
can also toggle on and off the display of the Constraints box with the Display
Constraints
icon in the Schema Design toolbar
3. Ensure that the Visualize ID Constraints icon
in the Schema Design toolbar is
toggled on. This ensures that relationship lines and ID constraint information are
displayed in Content Model View (see screenshot below).
Note:
The Visualize ID Constraints icon
switches on ID Constraint editing and validating
functionality in Schema View. If an XPath expression in an ID Constraint does not
locate a node, an error or warning might be displayed. This error or warning is to alert
you to the incorrect XPath expression; the XML Schema document itself is not invalid
because of the incorrect XPath expression. To re-check the validity of the document
without the XPath expression check, switch to Text View or Grid View and validate. You
can also disable validation in Schema View by toggling the Visualize ID Constraints
icon
off.
The screenshot below shows the graphical display of identity constraints. There are two identity
constraints in the identity constraints box: TeamKey and TeamKeyRef. The properties of
TeamKeyRef are highlighted with a solid green line (since TeamKeyRef is selected). The
properties of TeamKey (unselected) are shown with a dotted green line. For each identity
constraint the node selected by the XPath expression for selector and field are show with
the icons
and
respectively. If a node is collapsed, as is the case with the field element
of the TeamKey constraint, the relationship line ends with an ellipsis (see screenshot below).
© 2010 Altova GmbH
User Manual