Schematron FTW!
documentation