Validate an XML Document Against Schematron
To validate an XML document against a Schematron schema, select the
Validate action from the
Validation toolbar drop-down menu, or the menu, or from the Validate menu when invoking the
contextual menu in the Project view.
If you want to add a persistence association between your Schematron rules and the
current edited XML document, use the
Associate Schema action from the menu or the Document toolbar. A custom processing
instruction is added into the document and the validation process will take into account the
Schematron rules:
PI Added by the Associate Schema Action
<?xml-model href="percent.sch" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
The possible errors that might occur during the validation process are presented in the Errors panel at the bottom area of the Oxygen XML Editor window. Each error is flagged with a severity level that can be one of warning, error, fatal or info.
- The
roleattribute, which can have one of the following values:warnorwarning, to set the severity level to warningerror, to set the severity level to errorfatal, to set the severity level to fatalinfoorinformation, to set the severity level to info
- The start of the message, after trimming leading white-spaces. Oxygen XML Editor
looks to match the following exact string of characters (case sensitive):
Warning:, to set the severity level to warningError:, to set the severity level to errorFatal:, to set the severity level to fatalInfo:, to set the severity level to infoNote: Displayed message does not contain the matched prefix.
- If none of the previous rules match, Oxygen XML Editor sets the severity level to error.