<p:declare-step xml:id="b2-depend" xmlns:p="http://www.w3.org/ns/xproc">
  <p:input port="parameters" kind="parameter"/>

  <p:xinclude>
    <p:input port="source">
      <p:document href="langspec.xml"/>
    </p:input>
  </p:xinclude>

  <p:validate-with-relax-ng>
    <p:input port="schema">
      <p:document href="../schema/dbspec.rng"/>
    </p:input>
  </p:validate-with-relax-ng>

  <p:xslt>
    <p:input port="stylesheet">
      <p:document href="../style/dbspec.xsl"/>
    </p:input>
  </p:xslt>

  <p:store name="store" href="langspec.html"/>

  <p:exec result-is-xml="false"
          source-is-xml="false"
          command="/Users/ndw/bin/tidy">
    <p:input port="source"><p:empty/></p:input>
    <p:option name="args" select="string(/)">
      <p:pipe step="store" port="result"/>
    </p:option>
  </p:exec>

  <p:sink/>
</p:declare-step>
