11-Aug-02
XML Schema: Schematron
5
Schematron Rules
•Defined with sch:rule
•Each rule matches a particular set of nodes
•identified through XSLT pattern in context attribute
•Inside each rule are a number of sch:assert and sch:report elements
•Assertions are positive (things that must be true)
•Reports are negative (things that should be reported if they occur)
•Test is XPath expression held in test attribute
•Content gives description to be passed to validator