To create a validation scenario, follow these steps:
-
Select the
Configure Validation Scenario(s) from the
menu, or the toolbar, or from the Validate submenu when invoking the
contextual menu on a file in the
Navigator
view.
The
Configure Validation Scenario(s) dialog box is
displayed. It contains the following types of scenarios:
-
To edit an existing scenario, select the scenario and press the
Edit button. If you try to edit one of the read-only
predefined scenarios, Oxygen XML Developer plugin creates a customizable duplicate (you can
also use the Duplicate button).
-
To add a new scenario, press the
New button.
The
New scenarios dialog box is displayed. It lists all
the validation units for the scenario.
Figure: Add / Edit a Validation Unit
The New scenario dialog box includes the following
information:
- Name - The name of the current validation scenario.
- URL of the file to validate - The URL of the main module that
includes the current module. It is also the entry module of the validation process
when the current one is validated.
- File type - The type of the document that is validated in the
current validation unit. Oxygen XML Developer plugin automatically selects the file type
depending on the value of the URL of the file to validate
field.
- Validation engine - One of the engines available in Oxygen XML Developer plugin for validation of the type of document to which the current
module belongs. Default engine means that the default engine is
used to run the validation and is set in the Preferences pages
for the current document type (XML, XML Schema, XSLT, XQuery, etc.).
- Automatic validation -
If this option is checked, the validation operation defined by this row is also
applied by the automatic validation feature. If the Automatic
validation feature is disabled in Preferences, then this option is
ignored, as the Preference setting has a higher priority.
- Schema - This option becomes active when you set the
File type to XML Document.
Settings - Opens the Specify Schema dialog box
that allows you to set a schema for validating XML documents, or a list of extensions
for validating XSL or XQuery documents. You can also set a default phase for
validation with a Schematron schema.
-
If you want to add a new validation unit, press the Add
button.
-
To edit the URL of the main validation module, click its cell in the URL of the file to validate
column.
Specify the URL of the main module by doing one of the following:
-
Select the File type of the validated document.
Note that this determines the list of possible validation engines.
-
Select the Validation engine by clicking its cell and selecting
it from the drop-down list.
-
Select the Automatic validation option if you want the current
unit to be used by the automatic validation
feature.
-
Choose the schema to be used during validation (the schema detected after parsing the
document or a custom one).
-
Press OK.
The newly created validation scenario is now included in the list of scenarios
in the Configure Validation Scenario(s) dialog box. You can select
the scenario in this dialog box to associate it with the current document and press the
Apply associated button to run the validation
scenario.