<?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 output-003</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>This test checks that an attempt to write no documents to
an output port that doesn't allow a sequence is detected as an
error.</p>
</t:description>

<t:pipeline>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="1.0"
                xmlns:cx="http://xmlcalabash.com/ns/extensions"
                xmlns:c="http://www.w3.org/ns/xproc-step"
                xmlns:l="http://xproc.org/library">
<p:output port="result"/>

<p:filter select="a">
  <p:input port="source">
    <p:inline><c>aaa<a id="1"><b id="2">test</b></a></c></p:inline>
  </p:input>
</p:filter>
</p:declare-step>
</t:pipeline>

</t:test>
