<?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 p:declare-step-011</t:title>
  
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Test p:declare-step step with a primary document input
    port, a primary parameter input port, and a primary output
    port (equivalent to p:pipeline).</p>
  </t:description>
  
  <t:input port="source">
    <doc/>
  </t:input>
  
  <t:pipeline>
    <p:declare-step version='1.0'>
      <p:input port="source" primary="true"/>
      <p:input port="parameters" primary="true" kind="parameter"/>
      <p:output port="result" primary="true"/>

      <p:xslt>
        <p:input port="stylesheet">
          <p:inline>
            <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                            version="1.0">
              <xsl:template match="/">
                <doc2/>            
              </xsl:template>
            </xsl:stylesheet>
          </p:inline>
        </p:input>
      </p:xslt>
  
    </p:declare-step>
  </t:pipeline>
  
  <t:output port="result"><doc2/></t:output>
  
</t:test>

