To validate an XML document against a Schematron schema, invoke the
Validate action either from the application's toolbar or from the
Project view's contextual menu. If you would like to add a
persistence association between your Schematron rules and the current edited XML document, use
the Associate Schema action. A custom processing instruction is added into the document and
the validation process will take into account the Schematron
rules:
<?oxygen SCHSchema="percent.sch"?>
The possible errors which might occur during the validation process are presented in the
Errors panel at the bottom area of the Oxygen window. Each error is flagged
with a severity level, which Errors are flagged with a security level, which can be one of
warning, error, fatal or info.
To set a severity level,
Oxygen
looks for the following information:
- the role attribute, which can have one of the following values:
- warn or warning, to set the severity level to
warning;
- error, to set the severity level to error;
- fatal, to set the severity level to fatal;
- info or information, to set the severity level to
info.
- the start of the message, after trimming leading white-spaces. Oxygen looks to match the following
exact string of characters (case sensitive):
- if none of the previous rules match, Oxygen sets the security level to
error.