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:group

<p:group name? = NCName>
  ((p:output |
   p:log)*,
   subpipeline)
</p:group>

<p:group> is a so-called wrapper for an accumulation of several steps. It unites the steps. For example, it has to be used in the <p:try> Multi-Container Step within the "try" area.

Example

In the following example a <p:group> step is demonstrated.

<?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:empty/>
   </p:input>
   <p:output port="result"/>
   <p:group>
      <p:identity>
      <p:input port="source">
         <p:inline>
            <doc>Example</doc>
         </p:inline>
      </p:input>
      </p:identity>
   </p:group>
   <p:identity/>
</p:declare-step>

In the present example, the <p:identity> step is enclosed with a <p:group> element. The shown source text shall only demonstrate the application of the step.