Creating IIR Relations

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  SchemaAgent Client > Designing IIR Relationships >

Creating IIR Relations

Once you have dragged a schema into a Design window, you can create includes, imports, and redefines by adding the referenced schemas to the design and using drag-and-drop. To this aim, each schema or MFD file box has a handle located at the right border of the title bar.

box_xml-schema

Clicking the schema box handle and dragging the cursor to the schema in which the IIR statement is to appear creates an IIR relation between the two schemas. The target schema will automatically expand to display the IIR entries when the cursor is positioned over the schema box. SchemaAgent automatically checks namespaces and highlights permissible relations in the target schema box when you place the cursor over the corresponding entry. This ensures that no invalid IIR statement is created in the target schema.

design_create-include

Releasing the mouse button when the cursor is positioned over the desired section of the target schema creates an Include, Import, or Redefine relation. When dropping the connector onto an entry that does not turn bold, an error message appears, explaining why the selected IIR relationship is not allowed.

dlg_invalid-IIR

 

To create an IIR relation:

1.Click the schema box handle of the schema from which you wish to create the IIR and drag the cursor to the schema in which the IIR statement is to appear. If minimized, the target schema box expands, allowing you to drop the connector onto one of the IIR entries.
2.Place the cursor over the desired IIR entry.
3.When the desired IIR entry turns bold and a frame appears around it, drop the connector. The IIR command has now been inserted in the schema, and a drop-down symbol appears next to the IIR entry.
4.Optionally, create additional IIR relationships that are allowed between schemas.

© 2019 Altova GmbH