p:validate-with-schematron — The standard p:validate-with-schematron step.
 
The p:validate-with-schematron step applies
Schematron
processing to the source document.
| Input port | Primary | Sequence | Content types | 
|---|
| source | ✔  |   | xml html  | 
| schema |   |   | xml  | 
| Output port | Primary | Sequence | Content types | 
|---|
| result | ✔  |   | xml html  | 
| report |   | ✔  | xml json  | 
| Option name | Type | Default value | 
|---|
| assert-valid | xs:boolean | true() | 
| parameters | map(xs:QName,item()*)? | () | 
| phase | xs:string | '#DEFAULT' | 
| report-format | xs:string | 'svrl' | 
Declaration
 1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
   |   <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
| Code | Description | 
|---|
err:XC0054 | It is a dynamic error (err:XC0054)
if the assert-valid option is true
and any Schematron assertions fail. | 
err:XC0151 | It is a dynamic error (err:XC0151) 
  if the document supplied on schema port is not a valid Schematron 
  document. | 
Implementation defined features