Uses
Schematron expresses constraints through an XPath-based language that can be deployed as XSLT code, making it practical for applications such as the following:
- Adjunct to Structural Validation
- by testing for co-occurrence constraints, non-regular constraints, and inter-document constraints, Schematron can extend the validations able to be expressed in languages such as DTDs, RELAX NG or XML Schema.
- Lightweight Business Rules Engine
- Schematron is not a comprehensive, Rete rules engine, but it can be used to express rules about complex structures with an XML document.
- XML Editor Syntax Highlighting Rules
- XML Editors use Schematron rules to conditionally highlight XML files for errors.
Read more about this topic: Schematron