Port=source:
<p:pipeline name="pipeline" xmlns:p="http://www.w3.org/2007/03/xproc"> <p:input port="source"/> <p:output port="result"/> <p:identity> <p:input port="source"> <p:pipe step="pipeline" port="source"/> <p:pipe step="pipeline" port="source"/> <p:pipe step="pipeline" port="source"/> </p:input> </p:identity> <p:head> <p:option name="count" value="2"/> </p:head> <p:count/> </p:pipeline>
<p:pipeline name="pipeline" xmlns:p="http://www.w3.org/2007/03/xproc"> <p:input port="source"/> <p:output port="result"/> <p:matching-documents> <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:option name="test" value="/ex2:*" xmlns:ex2="http://example.com/ex"/> </p:matching-documents> <p:count/> </p:pipeline>
Port=result:
<c:result xmlns:c="http://www.w3.org/2007/03/xproc-step">2</c:result>