<?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">

<t:title>Test split-sequence 005</t:title>

<t:input port='source'>
<doc>
  <p/>
  <p/>
  <not-p/>
  <p/>
  <p/>
</doc>
</t:input>

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

<p:split-sequence name="split" test="p" initial-only="true">
  <p:input port="source" select="/doc/*"/>
</p:split-sequence>

<p:count/>

</p:pipeline>
</t:pipeline>

<t:output port='result'>
<c:result>2</c:result>
</t:output>

</t:test>

