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

<t:input port='source'>
<doc>
  <div>
    <p>Some para.</p>
    <p>Some other para.</p>
  </div>
</doc>
</t:input>

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

<p:label-elements/>

<p:for-each>
  <p:output port="result"/>
  <p:iteration-source select="//*[@xml:id]"/>
  <p:identity/>
</p:for-each>

<p:count/>

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

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

</t:test>

