Schematron
Validation using XPath
Index > Books > Declarative Development Guide > Technology Tour > XML Validation > Schematron

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


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.

© 2003-2005, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.