Name

p:message — The standard p:message step.

Synopsis

The p:message step writes a message conditionally.

Input portPrimarySequenceContent types
source✔ ✔  
Output portPrimarySequenceContent types
result✔ ✔  
Option nameTypeDefault valueRequired
selectitem()* ✔ 
testxs:booleantrue() 
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
  |   <p:input port="source" sequence="true"/>
  |   <p:output port="result" sequence="true"/>
  |   <p:option name="test" as="xs:boolean" select="true()"/>
5 |   <p:option name="select" as="item()*" required="true"/>
  |</p:declare-step>

Description

The p:message step is a standard XProc 3.0 step.

If the test option evaluates to true, the select option is evaluated and the string value of that expression is displayed as a message. If the test option is false, the message is not displayed.

In either case, this step behaves like the p:identity step.