<?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:px="http://xproc.dev.java.net/ns/extensions"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error">

  <t:title>Test try/catch #006</t:title>

  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests <code>p:group</code> and <code>p:catch</code> subpipelines
    declaring sequence and non-sequence output ports.</p>
  </t:description>
  
  <t:input port="source">
    <doc/>
  </t:input>
  
  <t:pipeline>
    <p:pipeline version='1.0'>
      <p:try>
        <p:group>
          <p:output port="out" sequence="false"/>
          <p:identity/>
        </p:group>
        <p:catch>
          <p:output port="out" sequence="true"/>
          <p:identity/>
        </p:catch>
      </p:try>
    </p:pipeline>
  </t:pipeline>

  <t:output port='result'>
    <doc/>
  </t:output>
  
</t:test>


