Last Updated: November 2025 Version: 1.0.0
Schematron lets you create custom validation rules that go beyond what XSD schemas can check. It’s perfect for validating business rules and data relationships.
Screenshot placeholder: Schematron validation interface
While XSD schemas check the structure of your XML (which elements can appear where), Schematron checks the content and relationships:
| XSD Checks | Schematron Checks |
|---|---|
| Element names | Data values |
| Element order | Field relationships |
| Required fields | Business rules |
| Data types | Conditional requirements |
Screenshot placeholder: Visual rule builder interface
Create validation rules without writing code:
Screenshot placeholder: Validation results panel
Use Schematron validation directly in the XML Editor:
Screenshot placeholder: Rule creation interface
Here’s what a simple Schematron rule looks like:
<schema xmlns="http://purl.oclc.org/dsdl/schematron">
<pattern>
<rule context="invoice">
<assert test="@date">
Every invoice must have a date
</assert>
<assert test="sum(item/price) = total">
Total must equal sum of item prices
</assert>
</rule>
</pattern>
</schema>
| Format | Support |
|---|---|
| Pure Schematron (.sch) | Full support |
| XSLT-based Schematron | Full support |
| Previous | Home | Next |
|---|---|---|
| Auto-Completion | Home | Schema Support |
| All Pages: XML Editor | XML Features | XSD Tools | XSD Validation | XSLT | FOP/PDF | Signatures | IntelliSense | Schematron | Favorites | Templates | Tech Stack | Licenses |