Validating an XML Document against a Schematron Schema
XMLBlueprint can validate any XML Document against any valid Schematron Schema:
Open your XML Document in the XML Editor.
Click XML > Validate.
The XML Error List is automatically displayed to show any errors in the XML Document. Click on the error message to jump to the position where the error occurred.
Note: To validate an XML Document you need to associate your XML Document with a DTD, Relax NG Schema, Schematron Schema, or XML Schema.
How to associate an XML Document with a Schematron Schema
To validate an XML Document against a Schematron Schema, you need to associate your XML Document with the Schematron Schema. XMLBlueprint uses a non standard, proprietary, processing instruction for this:
<?blueprint schematron="book.sch"?>
<book>
</book>
This tells XMLBlueprint to validate the XML Document against Schematron Schema "book.sch". In this case, the Schematron Schema is to be found in the same folder as the XML Document. It is also possible to specify an absolute location, but beware that you must use URL syntax, not Path syntax. For example:
<?blueprint schematron="http://www.xmlblueprint.com/schemas/book.sch"?> (correct - URL syntax)
<?blueprint schematron="file:///C:/XMLBlueprint/book.sch"?> (correct - URL syntax)
<?blueprint schematron="C:\XMLBlueprint\book.sch"?> (not correct - Path syntax)