The Multi-Schema XML Validator Schematron add-on is a Java tool to validate XML documents against RELAX NG [1] schemas annotated with Schematron schemas [2]. This release includes software developed by the Apache Software Foundation [3]
By using this tool, you can embed Schematron constraints into RELAX NG schemas. Then this tool validates documents against both RELAX NG grammar and embedded schematron constraints. Schematron makes it easy to write many constraints which are difficult to achieve by RELAX NG alone.
To validate documents with Schematron-annotated RELAX NG grammar, enter the following command:
java -jar relames.jar MySchema.rng doc1.xml [doc2.xml ...]
To run the program, you must have Xalan-Java [4] and JAXP-compliant XML parser in your classpath.
Please find the complete documentation here.!