Schematron, XSLT, and XPath

As it will become clear in the rest of this article, Schematron is best described as a "hosting" language that defines rules that rely on a query language—Schematron itself defines only the logical structure of the tests to perform, and you rely on a query language to define the context of the tests to perform and the tests themselves.

To be used within Schematron, a query language needs to be able to select nodes within XML documents—this is the scope of XPath. However, XPath is hardly a standalone language, and a number of XPath versions and profiles have been defined. These flavors of XPath have a different set of features.

Get Schematron now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.