<?xml version="1.0" encoding="UTF-8"?>

<p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc"
  xmlns:l="http://xproc.org/library"
  xmlns:cx="http://xmlcalabash.com/ns/extensions" name="main">

  <p:input port="source"/>
  <p:input port="parameters" kind="parameter"/>
  <p:output port="result"/>

  <p:import href="classpath:/rackspace-library.xpl"/><!-- classpath:/ -->
<!--  <p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>-->

<!--  <cx:message>
    <p:with-option name="message" select="'Entering xproc pipeline'"/>
  </cx:message>-->

  <l:validate-transform name="validate-pre-xinclude">
    <p:input port="schema" sequence="true">
      <p:document href="classpath:/rng/rackbook.rng"/>
    </p:input>
  </l:validate-transform>

  <p:xinclude/>

  <l:validate-transform name="validate-post-xinclude">
    <p:input port="schema" sequence="true">
      <p:document href="classpath:/rng/rackbook.rng"/>
    </p:input>
  </l:validate-transform>

  <l:programlisting-keep-together/>
  
  <l:extensions-info/>

</p:declare-step>


Make xinclude add xml:base attrs
<?xml version="1.0" encoding="UTF-8"?>

<p:declare-step version="1.0" xmlns:p="http://www.w3.org/ns/xproc"
  xmlns:l="http://xproc.org/library"
  xmlns:cx="http://xmlcalabash.com/ns/extensions" name="main">

  <p:input port="source"/>
  <p:input port="parameters" kind="parameter"/>
  <p:output port="result"/>

  <p:import href="classpath:/rackspace-library.xpl"/><!-- classpath:/ -->
<!--  <p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>-->

<!--  <cx:message>
    <p:with-option name="message" select="'Entering xproc pipeline'"/>
  </cx:message>-->

  <l:validate-transform name="validate-pre-xinclude">
    <p:input port="schema" sequence="true">
      <p:document href="classpath:/rng/rackbook.rng"/>
    </p:input>
  </l:validate-transform>

  <p:xinclude  fixup-xml-base="true"/>

  <l:validate-transform name="validate-post-xinclude">
    <p:input port="schema" sequence="true">
      <p:document href="classpath:/rng/rackbook.rng"/>
    </p:input>
  </l:validate-transform>

  <l:programlisting-keep-together/>
  
  <l:extensions-info/>

</p:declare-step>