I've got an XSD schema with various embedded Schematron rules. I've also got an XML that is supposed to be valid but it isn't, so I need to fix the rules.
How can I efficiently debug how each assertion is evaluated?
(I'm currently using Oxygen but any tool that does the job is good for me.)
usually Schematron is validated using the standard implementation as XSLT stylesheets. This means the actual validation is to apply a final stylesheet which is generated (in several steps) from the Schematron schema. If you have the stylesheet which is applied to validate the instance document you could run it through any XSLT debugger. The only tool I'm aware of that lets you save the validation stylesheet as a separate file for you is XML ValidatorBuddy . Maybe this helps
(Note: copied from Comment as Answer on request)