<?xml-stylesheet type="text/xsl" href="/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite"
        xmlns:p="http://www.w3.org/ns/xproc"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error"
        error="err:XD0007">

  <t:title>Test err:XD0007 (p:viewport)</t:title>
  
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Test <code>p:viewport</code> with <code>p:output</code>
    that is bound to a sequence documents but does not accept sequences.</p>
  </t:description>

  <t:input port="source">
    <doc>
      <para>Some paragraph.</para>
      <para>Some paragraph.</para>
      <para>Some paragraph.</para>
      <para>
        <para>Nested paragraph.</para>
      </para>
    </doc>
  </t:input>

  <t:pipeline>
    <p:pipeline version='1.0'>
      <p:viewport match="para">
        <p:output port="tmp"/>
        <p:identity>
          <p:input port="source">
            <p:inline><foo/></p:inline>
            <p:inline><bar/></p:inline>
          </p:input>
        </p:identity>
      </p:viewport>
    </p:pipeline>
  </t:pipeline>
  
</t:test>
