To create a validation scenario, follow these steps:
Select the Configure Validation Scenario(s) from the Validation toolbar drop-down menu, or from the
Document > Validate menu (or the Validate submenu when invoking the
contextual menu on a file in the Project view
).
The Configure Validation Scenario(s) dialog box is
displayed. It contains predefined and user-defined scenarios. The predefined scenarios are
organized in categories depending on the type of file they apply to and you can identify
them by a yellow key icon that marks them as read-only. The user-defined scenarios
are organized under a single category. The default scenarios for the particular framework
are rendered in bold.
The top section of the dialog box contains a filter that allows you to search
through the scenarios list and the Settings button allows you to configure the
following options:
Show all scenarios
Select this option to display all the available scenarios, regardless of the document
they are associated with.
Show only the scenarios available for the editor
Select this option to only display the scenarios that Oxygen XML Editor can apply
for the current document type.
Show associated scenarios
Select this option to only display the scenarios associated with the document you are
editing.
Import
scenarios
This option opens the Import scenarios dialog box that allows you
to select the scenarios file that contains the scenarios you want to
import. If one of the scenarios you import is identical to an existing scenario, Oxygen XML Editor ignores it. If a conflict appears (an imported scenario has the same
name as an existing one), you can choose between two options:
Keep or replace the existing scenario.
Keep both scenarios.
Note: When you keep both scenarios, Oxygen XML Editor adds
imported to the name of the imported scenario.
Export selected
scenarios
Use this option to export selected scenarios individually. Oxygen XML Editor
creates a scenarios file that contains the scenarios that you export.
This is useful if you want to share scenarios with others or export them to another
computer.
To add a scenario, click the New button.
The New scenarios dialog box is displayed and it lists
all the validation units for the scenario.
Figure: Create New Validation Scenario
This scenario configuration dialog box allows you to
configure the following information and options:
Name
The name of the validation scenario.
Storage
You can choose between storing the scenario in the Global
Options or Project Options.
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. To edit
the URL, double-click its cell and
specify the URL of the main module by doing one of the following:
Enter the URL in the text field or select it from the drop-down list.
Use the Browse drop-down button to browse for a local, remote, or
archived file.
The type of the document that is validated in the current validation unit. Oxygen XML Editor automatically selects the file type depending on the value of
the URL of the file to validate field.
Validation engine
You can select one of the engines available in Oxygen XML Editor for
validation of the particular document type.
The DITA
Validation engine performs DITA-specific checks in the context of
the specifications (it
is similar to the checks done with the DITA map Validate and
Check for Completeness action, but for a local file
rather than an entire DITA map).
The Table Layout
Validation engine looks for table layout problems (for more information,
see Report table layout problems).
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 the Document Checking
preferences page, 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 and allows you to specify the schema used
for the validation unit.
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.
Move
Up
Moves the selected scenario up one spot in the list.
Move Down
Moves the selected scenario down one spot in the list.
Add
Adds a new validation unit to the list.
Remove
Removes an existing validation unit from the list.
Configure any of the existing validation units according to the information above, and
you can use the buttons at the bottom of the table to add, remove, or move validation
units. Note that if you add a Schematron validation unit, you can also select the
validation phase.
Press OK.
The newly created validation scenario will now be 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.