Name

p:validate-with-schematron — The standard p:validate-with-schematron step.

Synopsis

The p:validate-with-schematron step applies Schematron processing to the source document.

Input portPrimarySequenceContent types
source✔  xml html 
schema  xml 
Output portPrimarySequenceContent types
result✔  xml html 
report ✔ xml json 
Option nameTypeDefault value
assert-validxs:booleantrue()
parametersmap(xs:QName,item()*)?()
phasexs:string'#DEFAULT'
report-formatxs:string'svrl'
Declaration
 1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" type="p:validate-with-schematron">
   |   <p:input port="source" primary="true" content-types="xml html"/>
   |   <p:input port="schema" content-types="xml"/>
   |   <p:output port="result" primary="true" content-types="xml html"/>
 5 |   <p:output port="report" sequence="true" content-types="xml json"/>
   |   <p:option name="parameters" as="map(xs:QName,item()*)?"/>
   |   <p:option name="phase" select="'#DEFAULT'" as="xs:string"/>
   |   <p:option name="assert-valid" select="true()" as="xs:boolean"/>
   |   <p:option name="report-format" select="'svrl'" as="xs:string"/>
10 |</p:declare-step>
Errors
CodeDescription
err:XC0054It is a dynamic error (err:XC0054) if the assert-valid option is true and any Schematron assertions fail.
err:XC0151It is a dynamic error (err:XC0151) if the document supplied on schema port is not a valid Schematron document.
Implementation defined features

Description

The p:validate-with-schematron step is a standard XProc 3.1 step. It is also described on XProcRef.org.

Line numbering

If validation errors occur and there are no line numbers in the reported errors, make sure that the line numbering feature is enabled globally in the configuration or when the validated document is loaded.