<?xml version="1.0" encoding="UTF-8"?>
<p:pipeline xml:lang="en" xmlns:p="http://www.w3.org/2007/03/xproc" xmlns:px="http://xproc.org/2007/03/xproc/ex" xmlns:nw="http://nwalsh.com/xproc/pipelines">
<p:input port="source">
  <p:document href="xproc.xml"/>
</p:input>

<p:import href="library.xml"/>

<nw:docbook-to-html/>

<p:store name="store">
  <p:option name="href" value="xproc.html"/>
</p:store>

<px:tidy name="tidy">
  <p:option name="href" select="/*/@href">
    <p:pipe step="store" port="result"/>
  </p:option>
</px:tidy>

</p:pipeline>

