XProc steps for RelaxNG and Schematron validation and HTML reports
<tr:patch-svrlname="htmlreport"xmlns:tr="http://transpect.io">
<p:inputport="source"primary="true"/> <!-- HTML document with @srcpath attributes -->
<p:inputport="reports"sequence="true"primary="false"/> <!-- reports as c:errors and svrl:schematron-output -->
<p:inputport="params"primary="false"/> <!-- parameters, expects a c:param-set -->
<p:outputport="result"primary="true"/> <!-- HTML report -->
<p:outputport="secondary"sequence="true"primary="false"/> <!-- collected messages as tr:message -->
<p:with-optionname="report-title"select="'my report title'"/> <!-- 'xs:string' -->
<p:with-optionname="show-adjusted-srcpath"select="'yes'"/> <!-- 'yes'|'no' -->
<p:with-optionname="show-step-name"select="'no'"/> <!-- 'yes'|'no' -->
<p:with-optionname="severity-default-name"select="'warning'"/><!-- xs:string -->
<p:with-optionname="debug"select="'yes'"/> <!-- 'yes'|'no' -->
<p:with-optionname="debug-dir-uri"/> <!-- URI -->
<p:with-optionname="status-dir-uri"/> <!-- URI -->
</tr:patch-svrl>http://transpect.io/htmlreports/xpl/patch-svrl.xpl
- https://github.com/transpect/xproc-util
- https://github.com/transpect/xslt-util
- https://github.com/transpect/schematron
This step patches an error report(s) into an HTML document. Permitted formats for the error report are SVRL, XProc c:errors or both combined within a c:reports document. To provide a name, the top-level element should carry an @tr:rule-family attribute