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 port | Primary | Sequence | Content types |
|---|---|---|---|
| source | ✔ | xml html | |
| schema | text xml |
| Output port | Primary | Sequence | Content types |
|---|---|---|---|
| result | ✔ | xml html | |
| report | ✔ | xml json |
| Option name | Type | Default value |
|---|---|---|
| assert-valid | xs:boolean | true() |
| dtd-attribute-values | xs:boolean | false() |
| dtd-id-idref-warnings | xs:boolean | false() |
| parameters | map(xs:QName,item()*)? | () |
| report-format | xs:string | 'xvrl' |
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" type="p:validate-with-relax-ng">
| <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
| Code | Description |
|---|---|
err:XC0153 | It is a dynamic error (err:XC0153)
if the document supplied on schema port cannot be interpreted
as an RELAX NG Grammar. |
err:XC0155 | It 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
- Support for RELAX NG DTD Compatibility is implementation-defined.
Description
The p:validate-with-relax-ng 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.