[sch:pattern
[sch:title "Date rules"]
[sch:rule context="Contract"
[sch:assert test="ContractDate < current-date()"
"ContractDate should be in the past because future contracts are not allowed."]]]
Clunky, but usable. Trang understands this syntax when converting from
RNG to RNC and vice versa.