Schematron Validation
Schematron is an XPath based schema language. It is quick and easy
to create Xpath assertions for document validity.
A document can be validated against a Schematron schema using the validateSchematron accessor. The validateSchematron
accessor is part of the ext_xml module.
Here is
an example which validates the first Act of King Lear against a Schematron schema for the Act.
The result is a true canonical boolean document.
Here
is another example but in this case the document has been deliberately corrupted. This shows the error handling with
XPath locations.