11-Aug-02
XML Schema: Schematron
2
Co-occurrence Constraints
•XML Schema can't articulate certain kinds of constraints:
•When an element's type depends on an attribute value
•When an element's content depends on the presence of an attribute
•When the text in mixed content has to be a certain type
•When a value has to match an ID in a separate document
•When an element can contain repeatable elements in any order
•Schematron can be used to plug the gaps