<?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:px="http://xproc.dev.java.net/ns/extensions"
      xmlns:c="http://www.w3.org/ns/xproc-step"
      xmlns:err="http://www.w3.org/ns/xproc-error"
      error="err:XS0055">
  <t:title>Test err:XS0055 #002</t:title>

  <t:description>
    <p xmlns='http://www.w3.org/1999/xhtml'>It is a static error if a
    primary parameter input port has no binding and the pipeline that
    contains the step has no primary parameter input
    port.</p>
  </t:description>

  <t:input port="source">
    <doc/>
  </t:input>
  
  <t:pipeline>
    <p:declare-step version='1.0' xmlns="http://www.w3.org/ns/xproc"
                    xmlns:foo="http://example.com">
      <p:input port="source"/>
      <p:output port="result"/>

      <p:pipeline type="foo:test">
        <p:count/>
      </p:pipeline>

      <!-- because foo:test was declared using p:pipeline,
           it has an unbound primary parameter input port -->
      <foo:test/>
    </p:declare-step>
  </t:pipeline>
  
</t:test>

