Version 5.9.4

# `Message`

Writes a message onto the console and to the protocol file.

## Child elements

`Element`, `Value`

## Parent elements

`AtPageCreation`, `AtPageShipout`, `Case`, `Contents`, `ForAll`, `Function`, `Layout`, `Loop`, `Otherwise`, `Record`, `SavePages`, `Section`, `Table`, `Tr`, `Until`, `While`

## Attributes

`error` (optional)
  Generate an error besides writing the message.
  - `yes`: Report an error.
  - `no`: Do not report an error (default).
`errorcode` (number, optional, since version 2.3.69)
  If an error is raised, use this code on exit. Defaults to 1. Negative values are reserved for system purpose.
`exit` (optional, since version 3.1.17)
  Tells the software to exit immediately.
  - `no`: The speedata Publisher continues with the PDF creation.
  - `yes`: The speedata Publisher exits without finishing the PDF file.
`select` (XPath expression, optional)
  Contents of the message. You can alternatively specify the message by the child elements `Value`.

## Example

    <Message select="concat('Price: ',@price)" error="no"/>

    <Record element="data">
      <Message>
        <Value>Attribute price: </Value>
        <Value select="@price"/>
      </Message>
    </Record>

#### On this page