XProc steps

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z


<p:declare-step type="p:xsl-formatter">
   <p:input port="source"/>
   <p:input port="parameters" kind="parameter"/>
   <p:output port="result" primary="false"/>
   <p:option name="href" required="true"/> <!-- anyURI -->
   <p:option name="content-type"/> <!-- string -->

With the help of the <p:xsl-formatter> step, XSL-FO formattings can be performed. The document to be “initially“ processed is loaded at the “source“ input port. In the “parameter“ input port indications being specific for the formatting can be defined. The stylesheet with the appropriate formatting specifications is indicated under the “name“ option (href=““). The “content-type“ option expects the file type which shall be produced. PDF is the standard, since this is normally the output of XSL-FO processes.


In the following example a simple XSL-FO transformation is performed:

<?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:output port="result">
   <p:xsl-formatter name="xep1" href="test.pdf" content-type="application/pdf">
      <p:input port="source">
         <p:document href="example_42_xslfoexample.xsl"/>
      <p:input port="parameters">