<?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"
		error="err:XS0036">

  <t:title>Test err:XS0036 #001</t:title>

  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests attempting to redeclare p:identity, should throw static error XS0036</p>
  </t:description>
  
  <t:input port="source">
    <t:document>
		<test>
		    <a>test1</a>
		    <b/>
		</test>    
	</t:document>
  </t:input>

  <t:pipeline>
<p:pipeline version='1.0' xmlns:p="http://www.w3.org/ns/xproc" xmlns:mine="http://www.example.org/test/mine" name="pipeline">

<p:declare-step name="test1" type="p:identity">
  <p:input port="source" sequence="true"/>
  <p:output port="result" sequence="true"/>
  <p:count/>    
</p:declare-step>

<p:identity/>

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

 <!-- TODO: enquire about representing error results in test format. JF //-->
  <t:output port="result"/>

</t:test>
