Schematron
Schematron is a rule-based validation language for making assertions about the presence or absence of patterns in XML trees.[src] It is a structural schema language expressed in XML using a small number of elements and XPath languages.[src] In many implementations, Schematron XML is processed into XSLT code for deployment anywhere that XSLT can be used.[src] Schematron is capable of expressing constraints in ways that other XML schema languages like XML Schema and DTD cannot.[src] For example, it can require that the content of an element be controlled by one of its siblings.[src] Or it can request or require that the root element, regardless of what element that is, must have specific attributes.[src] Schematron can also specify required relationships between multiple XML files.[src] Constraints and content rules may be associated with "plain-English" (or any language) validation error messages, allowing translation of numeric Schematron error codes into meaningful user error messages.[src] Users of Schematron define all the error messages themselves.[src] The current ISO recommendation is Information technology, Document Schema Definition Languages (DSDL), Part 3: Rule-based validation, Schematron (ISO/IEC 19757-3:2025).[src]
Schematron is a rule-based validation language for making assertions about the presence or absence of patterns in XML trees.[src] It is a structural schema language expressed in XML using a small number of elements and XPath languages.[src] In many implementations, Schematron XML is processed into XSLT code for deployment anywhere that XSLT can be used.[src] Schematron is capable of expressing constraints in ways that other XML schema languages like XML Schema and DTD cannot.[src] For example, it can require that the content of an element be controlled by one of its siblings.[src] Or it can request or require that the root element, regardless of what element that is, must have specific attributes.[src] Schematron can also specify required relationships between multiple XML files.[src] Constraints and content rules may be associated with "plain-English" (or any language) validation error messages, allowing translation of numeric Schematron error codes into meaningful user error messages.[src] Users of Schematron define all the error messages themselves.[src] The current ISO recommendation is Information technology, Document Schema Definition Languages (DSDL), Part 3: Rule-based validation, Schematron (ISO/IEC 19757-3:2025).[src] http://purl.oclc.org/dsdl/schematron Date rules current-date()">ContractDate should be in the past because future contracts are not allowed.[src] This rule checks to make sure that the XML element has a date that is before the current date.[src] If this rule fails the validation will fail and an error message which is the body of the assert element will be returned to the user.[src] ==See also== XML Schema Language comparison - Comparison to other XML Schema languages.[src] Service Modeling Language - Service Modeling Language uses Schematron.[src] Document Schema Definition Languages[src]
26 sentences · 26 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Schematron." encyclopegia.org, 2026, https://encyclopegia.org/wiki/schematron. Accessed 25 November 2026.
Chicago
"Schematron." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/schematron.
APA
encyclopegia.org. (2026). Schematron. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/schematron
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON