Test p:viewport
raises XD0072 for other (binary) document.
Test ab-viewport-024.xml is expected to fail with error code err:XD0072
.
<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:viewport match="body1">
<p:with-input>
<p:inline content-type="application/octet-stream" expand-text="false">123456789098765432</p:inline>
</p:with-input>
<p:add-attribute match="/*" attribute-name="att" attribute-value="3"/>
</p:viewport>
</p:declare-step>
Additional tests for p:viewport (partly ported from 1.0)