Associating a Schema in Validation Scenarios Defined in the Document Type
To report errors and warnings during automatic and manual validations that help maintain the structural integrity of particular XML document types, Oxygen XML uses rules defined in the schema that is detected in the validation scenarios that are associated to each particular document type.
- and go to Document Type Association.
-
Select your particular document type and click the Edit or Duplicate button to modify an existing framework (or use the New button to create a new one).
Step Result: This opens a Document type configuration dialog box.
- Go to the Validation tab.
- Create or edit a validation scenario:
- To create a
new validation scenario, click the
New button.
- To edit the
properties of an existing validation scenario, select it and click the
Edit button (you can also use the
Duplicate button to copy an existing scenario and edit its properties).
- To create a
new validation scenario, click the
-
Add or configure validation units according to your needs and click the
Specify Schema button.
Step Result: The Specify Schema dialog box is displayed:
Figure 1. Specify Schema Dialog Box The Specify Schema dialog box contains the following options:
- Use detected schema
- Uses the schema detected for the particular document.
- Use custom schema
- Allows you to specify the schema using the following options:
- Select the schema to be associated with the validation unit and configure the rest of the options according to your preferences.
- Click OK on both dialog boxes.
Result: The schema is now associated with the validation scenario you just configured for that particular document type.