Use Case 5.5 - Single-file Command-line Document Processing

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
    xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">
   <p:input port="source"/>
   <p:validate-with-relax-ng>
      <p:input port="schema">
         <p:document href="docbook.rng"/>
      </p:input>
   </p:validate-with-relax-ng>
   <p:xslt>
      <p:input port="stylesheet">
         <p:document href="docbook2xhtml.xsl"/>
      </p:input>
      <p:input port="parameters">
         <p:inline>
            <c:param-set/>
         </p:inline>
      </p:input>
   </p:xslt>
   <p:validate-with-relax-ng>
      <p:input port="schema">
         <p:document href="xhtml.rng"/>
      </p:input>
   </p:validate-with-relax-ng>
   <p:store method="html">
      <p:with-option name="href" select="concat(base-uri(),'.html')"/>
   </p:store>
</p:declare-step>

-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics

Received on Wednesday, 6 March 2013 18:01:03 UTC