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 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 list.
- Executable path - Path to the executable file of the custom
validation tool. You can insert here editor
variables like ${home}, ${pd}, ${oxygenInstallDir}, etc.
- Working directory - The working directory of the custom validation
tool.
- Associated editors - The editors which can perform validation with
the external tool: the XML editor, the XSL editor, the 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.