Test nw-encode-004.xml is expected to fail with error code err:XC0052
.
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
<p:output port="result"/>
<p:encode encoding="not-a-valid-encoding">
<p:with-input>
<doc/>
</p:with-input>
</p:encode>
</p:declare-step>
Test the p:encode step.