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" type="p:validate-with-nvdl">
   |   <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 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.