Schematron - Sample Rule

Sample Rule

Schematron rules can be created using a standard XML editor or XForms application. The following is a sample schema:

Date rules ContractDate should be in the past because future contracts are not allowed.

This rule checks to make sure that the ContractDate XML element has a date that is before the current date. 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.

Read more about this topic:  Schematron

Famous quotes containing the words sample and/or rule:

    All that a city will ever allow you is an angle on it—an oblique, indirect sample of what it contains, or what passes through it; a point of view.
    Peter Conrad (b. 1948)

    The rule is, jam tomorrow and jam yesterday—but never jam today.
    Lewis Carroll [Charles Lutwidge Dodgson] (1832–1898)