To configure the options for Custom Validation Engines, open the
Preferences dialog box and go to .
If you want to add a new custom validation tool or edit the properties of an exiting one you
can use the Custom Validator dialog box displayed by pressing the
New button or the Edit button.
Figure: Edit a Custom Validator
The configurable parameters of a custom validator are as follows:
- Name - Name of the custom validation engine that will be displayed
in the
Validation toolbar drop-down menu.
- Executable path - Path to the executable file of the custom
validation tool. You can insert editor variables,
such as ${home}, ${pd},
${oxygenInstallDir}.
- Working directory - The working directory of the custom validation
tool.
- Associated editors - The editors that can perform validation with
the external tool (XML editor, XSL editor, XSD editor, etc.)
- Command line arguments for detected schemas - Command line
arguments used in the commands that validate the current edited file against different types
of schema (W3C XML Schema, Relax NG full syntax, Relax NG compact syntax, NVDL, Schematron,
DTD, etc.) The arguments can include any custom switch (like -rng) and the
following editor variables:
- ${cf} - Current file as file path, that is the absolute
file path of the current edited document.
- ${currentFileURL} - Current file as URL, that
is the absolute file path of the current edited document represented as URL.
- ${ds} - The path of the detected schema as a local file
path for the current validated XML document.
- ${dsu} - The path of the detected schema as an URL for
the current validated XML document.