Name

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

Synopsis

The p:validate-with-nvdl step applies NVDL validation to the source document.

Input portPrimarySequenceContent typesDefault binding
source✔  xml html 
nvdl  xml 
schemas ✔ text xml p:empty
Output portPrimarySequenceContent typesDefault binding
result✔  xml html 
report ✔ xml json 
Option nameTypeDefault value
assert-validxs:booleantrue()
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="nvdl" content-types="xml"/>
   |   <p:input port="schemas" sequence="true" content-types="text xml">
 5 |      <p:empty/>
   |   </p:input>
   |   <p:output port="result" primary="true" content-types="xml html"/>
   |   <p:output port="report" sequence="true" content-types="xml json"/>
   |   <p:option name="assert-valid" select="true()" as="xs:boolean"/>
10 |   <p:option name="report-format" select="'xvrl'" as="xs:string"/>
   |   <p:option name="parameters" as="map(xs:QName,item()*)?"/>
   |</p:declare-step>
Errors
CodeDescription
err:XC0053It is a dynamic error (err:XC0053) if the assert-valid option on p:validate-with-nvdl is true and the input document is not valid.
err:XC0154It is a dynamic error (err:XC0154) if the document supplied on nvdl port is not a valid NVDL document.

Description

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