SVRL output from Schematron

This should cover W3C XML Schema, Relax NG and DTD related problems.
madde001
Posts: 80
Joined: Fri Apr 23, 2004 5:24 pm
Location: Durham, NC, USA

SVRL output from Schematron

Post by madde001 »

Hi all,

I'm trying to figure out how I can get SVRL output from my ISO Schematron schemas. Is there an option somewhere to output to SVRL instead of the oxygen console?

John
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: SVRL output from Schematron

Post by george »

Dear John,

No, that is not possible. oXygen collects directly the errors and does not use the SVRL output so that is never generated.
With XProc support that we added some time ago you can have the Schematron validation easily implemented as an XProc pipeline that will get you the SVRL output.
Also, any results can be saved as XML (see the contextual "Save Results as XML" action on the results view).

Best Regards,
George
George Cristian Bina
madde001
Posts: 80
Joined: Fri Apr 23, 2004 5:24 pm
Location: Durham, NC, USA

Re: SVRL output from Schematron

Post by madde001 »

Hi George,

Great to hear from you.
Thanks for the info. I will do as you suggest.

Best, John
madde001
Posts: 80
Joined: Fri Apr 23, 2004 5:24 pm
Location: Durham, NC, USA

Re: SVRL output from Schematron

Post by madde001 »

btw, if you could add "built-in support for SVRL output from Schematron validation" as an enhancement request for a future oxygen version that would be great.
Obviously I would not want to lose the existing human-friendly output to the oxygen validation pane.
But looking at where Rick Jelliffe has been taking skeleton.xsl (http://www.schematron.com/validators.html), it seems pretty clear that this is gently moving away from text output and towards SVRL output as the preferred way of passing off validation results from a Schematron validation run.
Internally for oxygen, getting into the spirit of this change would mean taking SVRL output and pre-parsing it, instead of taking straight text output, as the input to the user-friendly validation result pane display.
But again, for now I will just set up an XProc pipeline as you suggest.
Cheers, John
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: SVRL output from Schematron

Post by george »

Hi John,

oXygen's implementation is also based on skeleton. Only that I simplified things a little as I already know what XSLT processors we are using and what version of Schematron. The error reporting a however more deeply integrated with the XSLT transformation to easily get the location information for the reported errors - otherwise one needs to map them from the SVRL output back to the document locations.

Best Regards,
George
George Cristian Bina
madde001
Posts: 80
Joined: Fri Apr 23, 2004 5:24 pm
Location: Durham, NC, USA

Re: SVRL output from Schematron

Post by madde001 »

Hi George, that's fair enough, I understand what you mean. John
Post Reply