RelaxNG schemas and non-schema checking code used by the validator.