<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xmlns:err="http://www.w3.org/ns/xproc-error"
   expected="fail" code="err:XD0072">
   <t:info>
      <t:title>viewport-024 (AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-09-18</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Additional tests for p:viewport (partly ported from 1.0)</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Test <code>p:viewport</code> raises XD0072 for other (binary) document.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step 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>
   </t:pipeline>
</t:test>