Looking at DAFFODIL-2482 that came up due to a gap that's blocking
integration of the schematron validation functionality into some workflows
that require the full SVRL output, not just the pass/fail status.

So what needs to happen here is the SVRL that we currently just parse for
errors and discard needs to be output in a predictable way. I've tried a
couple things intent on minimizing the footprint of the impl but coming up
empty mainly due to violating the reusable validator principle.

So another unminimized approach would be to provide an additional stream to
all validators for raw output to be written, the implementation of that
stream is determined by configuration from the DataProcessor.  The new
output stream is passed at validation-time, which requires changing the
signature of the validate call to accept this output stream in addition to
the existing input stream (or we could add another interface, but I'm not
convinced of the usefulness of that currently).

Looking for some thoughts on this approach.


[1] https://issues.apache.org/jira/browse/DAFFODIL-2482

Reply via email to