Tests the dtd-default-attributes option.
Test nw-validate-with-rng-004.xml is expected to pass.
It requires the following features: p-validate-with-relax-ng.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
<p:output port="result"/>
<p:add-attribute attribute-name="status" attribute-value="final">
<p:with-input port="source" href="../documents/rng-def-attr.xml"/>
</p:add-attribute>
<p:validate-with-relax-ng dtd-attribute-values="true">
<p:with-input port="schema" href="../documents/rng-def-attr.rnc"/>
</p:validate-with-relax-ng>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="document">The pipeline root is not “document”.</s:assert>
</s:rule>
<s:rule context="document">
<s:assert test="@status != 'final'">Status attribute is incorrect.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Initial version