<?xml version="1.0" encoding="UTF-8"?>
<p:pipeline xml:lang="en" name="pipeline" xmlns:p="http://www.w3.org/2007/03/xproc">
<p:input port="source">
  <p:document href="input.xml"/>
</p:input>
<p:output port="result"/>

<p:load name="loadStyle">
  <p:option name="href" value="style.xsl"/>
</p:load>

<p:viewport name="format-sections" match="section">
  <p:viewport-source>
    <p:pipe step="pipeline" port="source"/>
  </p:viewport-source>
  <p:output port="result"/>

  <p:xslt>
    <p:input port="stylesheet">
      <p:pipe step="loadStyle" port="result"/>
    </p:input>
  </p:xslt>
</p:viewport>

</p:pipeline>

