Tests that XD0042 is raised if document with wrong content type appears on p:output.
Test ab-output-031.xml is expected to fail with error code err:XD0042
.
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:try>
<p:output port="result"/>
<p:error code="error">
<p:with-input>
<error/>
</p:with-input>
</p:error>
<p:catch code="error">
<p:output port="result" content-types="text/plain"/>
<p:identity>
<p:with-input>
<doc/>
</p:with-input>
</p:identity>
</p:catch>
</p:try>
</p:declare-step>
Added new tests