<?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:XS0005">
  <t:title>Test err:XS0005 #008</t:title>

  <t:description xmlns="http://www.w3.org/1999/xhtml">                                                              
    <p>Primary output ports of steps must be connected.</p>
    <p>In this test, the "result" output port of the step "identity"
    is not connected.</p>
  </t:description>     

  <t:input port="source">
    <foo/>
  </t:input>

  <t:pipeline>
    <p:pipeline version='1.0'>

      <p:identity name="identity"/>

      <p:choose>
        <p:xpath-context>
          <p:inline><bar/></p:inline>
        </p:xpath-context>
        <p:when test="1 = 1">
          <p:identity>
            <p:input port="source">
              <p:inline><bar/></p:inline>
            </p:input>
          </p:identity>
        </p:when>
        <p:otherwise>
          <p:identity>
            <p:input port="source">
              <p:inline><baz/></p:inline>
            </p:input>
          </p:identity>
        </p:otherwise>
      </p:choose>

    </p:pipeline>

  </t:pipeline>

</t:test>

