Name
p:message — The standard p:message step.
Synopsis
The p:message step writes a message conditionally.
| Input port | Primary | Sequence | Content types |
|---|---|---|---|
| source | ✔ | ✔ |
| Output port | Primary | Sequence | Content types |
|---|---|---|---|
| result | ✔ | ✔ |
| Option name | Type | Default value | Required |
|---|---|---|---|
| select | item()* | ✔ | |
| test | xs:boolean | true() |
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.
It is also described on XProcRef.org.
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.