Schematron rules can be embedded into W3C Schema through annotation (using the
appinfo element) or in any element on any level of a RELAX NG Schema
(taking into account that the RELAX NG validator ignores all elements that are not in the
RELAX NG namespace).
Oxygen accepts such documents as
Schematron validation schemas and it is able to extract and use the embedded rules. To
validate a document with both RELAX NG schema and its embedded Schematron rules, you need two
persistence associations like in the following
example:
<?oxygen RNGSchema="percent.rng">
<?oxygen SCHSchema="percent.rng">
The second association validates your document with Schematron rules extracted from the RELAX
NG Schema. Similarly you can specify as Schematron Schema a W3C XML Schema having the
Schematron rules embedded:
<?oxygen SCHSchema="percent.xsd">