Name

p:validate-with-relax-ng — The standard p:validate-with-relax-ng step.

Synopsis

The p:validate-with-relax-ng step applies RELAX NG validation to the source document.

Input portPrimarySequenceContent types
source✔  xml html 
schema  text xml 
Output portPrimarySequenceContent types
result✔  xml html 
report ✔ xml json 
Option nameTypeDefault value
assert-validxs:booleantrue()
dtd-attribute-valuesxs:booleanfalse()
dtd-id-idref-warningsxs:booleanfalse()
parametersmap(xs:QName,item()*)?()
report-formatxs:string'xvrl'
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="text 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="dtd-attribute-values" select="false()" as="xs:boolean"/>
   |   <p:option name="dtd-id-idref-warnings" select="false()" as="xs:boolean"/>
   |   <p:option name="assert-valid" select="true()" as="xs:boolean"/>
   |   <p:option name="report-format" select="'xvrl'" as="xs:string"/>
10 |   <p:option name="parameters" as="map(xs:QName,item()*)?"/>
   |</p:declare-step>
Errors
CodeDescription
err:XC0153It is a dynamic error (err:XC0153) if the document supplied on schema port cannot be interpreted as an RELAX NG Grammar.
err:XC0155It is a dynamic error (err:XC0155) if the assert-valid option on p:validate-with-relax-ng is true and the input document is not valid.
Implementation defined features

Description

The p:validate-with-relax-ng step is defined in the XProc 3.1: Standard Step Library. It is also described on XProcRef.org.