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

<p:declare-step type="p:identity">
   <p:input port="source" sequence="true"/>
   <p:output port="result" sequence="true"/>
</p:declare-step>

The <p:identity> step makes a direct copy of the input document or the input at the input port (“source“) and re-outputs it at the output port (“result“).

Example

The following script re-outputs directly the complete content of the input port.

<?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:document href="FilmCollection.xml"/>
   </p:input>
   <p:output port="result"/>
   <p:identity/>
</p:declare-step>