p:validate-with-relax-ng — The standard p:validate-with-relax-ng step.
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">
| <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