p:validate-with-dtd — The standard p:validate-with-dtd step.
The p:validate-with-dtd
step validates XML with a DTD.
Input port | Primary | Sequence | Content types |
---|
source | ✔ | | xml html |
Output port | Primary | Sequence | Content types |
---|
result | ✔ | | xml html |
report | | ✔ | xml json |
Option name | Type | Default value |
---|
assert-valid | xs:boolean | true() |
report-format | xs:string | 'xvrl' |
serialization | map(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
Code | Description |
---|
err:XC0210 | It 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. |