Clone from http://code.google.com/p/schematron/.