SVRL output from Schematron

This should cover W3C XML Schema, Relax NG and DTD related problems.
madde001
Posts: 80
Location: Durham, NC, USA

SVRL output from Schematron

Sat Jun 19, 2010 1:49 am

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: 2100

Re: SVRL output from Schematron

Mon Jun 21, 2010 5:40 pm

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
Location: Durham, NC, USA

Re: SVRL output from Schematron

Mon Jun 21, 2010 5:46 pm

Hi George,

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

Best, John
madde001
Posts: 80
Location: Durham, NC, USA

Re: SVRL output from Schematron

Tue Jun 22, 2010 5:04 pm

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: 2100

Re: SVRL output from Schematron

Tue Jun 22, 2010 5:32 pm

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
Location: Durham, NC, USA

Re: SVRL output from Schematron

Tue Jun 22, 2010 6:05 pm

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

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests