---
title: "p.message-block"
description: "## Syntax **p.message-block**   ## Purpose The p.message-block annotation is used to tag an element as being a set of messages, and can be single or multi-line. This block can contain message content or message numbers and messages contained in…"
url: "https://www.stilo.com/docs/migrate/book/p-message-block/"
updated: "2023-12-18"
category: Annotations / Book, Map and Bookmap
tags:
  - Annotations
---

# p.message-block

## Syntax

**p.message-block**

 

## Purpose

The p.message-block annotation is used to tag an element as being a set of messages, and can be single or multi-line. This block can contain message content or message numbers and messages contained in their own XML tags. This tag preserves line breaks and spacing.

## Examples

The following is an example of a time when you might want to use the annotations

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-p.message-block0.png)

 

The following is an example of a rule that will apply the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-p.message-block1.png)

The following is the DITA XML output for the rule:

<p>Upon running the cn command, the following log entries will be created:</p>

<msgblock>cn:start

cn:name

cn:end</msgblock>
