<?xml-stylesheet type="text/xsl" href="/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite"
	xmlns:test="http://xproc.org/ns/testsuite/test"
        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 #003</t:title>
  
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests attempting to define the same type directly and via import in the same scope, should throw static error XS0036</p>
  </t:description>
  
  <t:input port="source">
    <doc/>
  </t:input>

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

     <p:import href="../lib/l1.xpl"/>

     <p:declare-step type="test:step">
      <p:input port="source"/>
      <p:output port="result"/>
      <p:count/>    
     </p:declare-step>

     <p:identity/>

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

</t:test>
