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

<t:input port='source'><doc/></t:input>

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

<p:split-sequence>
  <p:input port="source">
    <p:pipe step="pipeline" port="source"/>
    <p:inline><ex:stylesheet xmlns:ex="http://example.com/ex"/></p:inline>
    <p:pipe step="pipeline" port="source"/>
    <p:inline><ex:stylesheet xmlns:ex="http://example.com/ex"/></p:inline>
  </p:input>
  <p:with-option name="test" select="'/ex2:*'"
		 xmlns:ex2="http://example.com/ex"/>
</p:split-sequence>

<p:count/>

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

<t:output port='result'>
<c:result xmlns:c="http://www.w3.org/ns/xproc-step">2</c:result></t:output>

</t:test>

