Name

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

Synopsis

The p:validate-with-dtd step validates XML with a DTD.

Input portPrimarySequenceContent types
source✔  xml html 
Output portPrimarySequenceContent types
result✔  xml html 
report ✔ xml json 
Option nameTypeDefault value
assert-validxs:booleantrue()
report-formatxs:string'xvrl'
serializationmap(xs:QName,item()*)?()
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
  |   <p:input port="source" primary="true" content-types="xml html"/>
  |   <p:output port="result" primary="true" content-types="xml html"/>
  |   <p:output port="report" sequence="true" content-types="xml json"/>
5 |   <p:option name="report-format" select="'xvrl'" as="xs:string"/>
  |   <p:option name="serialization" as="map(xs:QName,item()*)?"/>
  |   <p:option name="assert-valid" select="true()" as="xs:boolean"/>
  |</p:declare-step>
Errors
CodeDescription
err:XC0210It is a dynamic error (err:XC0210) if the assert-valid option on p:validate-with-dtd is true and the input document is not valid.

Description

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