Validation performance: Schema cf. Schematron.
Posted: Tue Jul 17, 2012 12:17 pm
Using oXygen XML Editor v14, validating 5000 files in one project (all <1MB, most <0.1MB) against an RNC Schema took <4 min, whereas validating the same set of files against a Schematron file took nearly an hour. The RNC has ~300 elements and many attributes; the Schematron has ~150 <rule>s. I did this exercise as colleagues wondered whether continually increasing the number of Schematron rules we use was having a detrimental effect on validation performance. This test was my first attempt at investigating... perhaps it's not a well-designed test.
I don't really have an appreciation of what is going on behind the scenes, but to me this seems a large difference (or rather, I never realised until I did this exercise how slow validating against Schematron rules is relative to validating against a Schema, since I've only ever validated single files before). Please could someone explain in relatively simple terms what is happening here, and whether there is some obvious way of speeding up Schematron validation?
Many thanks indeed - Simon.
I don't really have an appreciation of what is going on behind the scenes, but to me this seems a large difference (or rather, I never realised until I did this exercise how slow validating against Schematron rules is relative to validating against a Schema, since I've only ever validated single files before). Please could someone explain in relatively simple terms what is happening here, and whether there is some obvious way of speeding up Schematron validation?
Many thanks indeed - Simon.