1. A method comprising: receiving a schema defining a class of elements that conform to a data description language; receiving a constraint template that defines requirements for instances of the elements; and validating a document in accordance with the schema and the constraint template.