Seeing Schematron validation output
Posted: Thu Jul 16, 2015 10:47 pm
I have a Schematron schema and an XML Schema set up to validate an xml file. My questions are about seeing the output of the Schematron validation.
1. I can see the output of reports, asserts, and diagnostics just fine, unless an error they detect is also detected by XML Schema validation. In the latter case, I can only see the XML Schema validation output, not the Schematron output. Is there a way I can suppress the former and see the latter? For example, I have rules looking for incorrect pairings of ID and IDREF which provide helpful information about resolving the error. I don't get to see this information because all I can see is the Saxon-EE output "There is one IDREF value with no corresponding ID".
2. I never see the textual output of anything other than reports, asserts, and diagnostics. For example, I have patterns with p elements, the purpose of which is to output text. I need to output element counts and other information which does not indicate a validation error. Yet I cannot see these p elements anywhere in the output. Same goes for p elements and titles in schemas. Where can I find this output?
1. I can see the output of reports, asserts, and diagnostics just fine, unless an error they detect is also detected by XML Schema validation. In the latter case, I can only see the XML Schema validation output, not the Schematron output. Is there a way I can suppress the former and see the latter? For example, I have rules looking for incorrect pairings of ID and IDREF which provide helpful information about resolving the error. I don't get to see this information because all I can see is the Saxon-EE output "There is one IDREF value with no corresponding ID".
2. I never see the textual output of anything other than reports, asserts, and diagnostics. For example, I have patterns with p elements, the purpose of which is to output text. I need to output element counts and other information which does not indicate a validation error. Yet I cannot see these p elements anywhere in the output. Same goes for p elements and titles in schemas. Where can I find this output?