---
title: p.book.person.lastname
description: "## Syntax **p.book.person.lastname** ## Purpose The p.book.person.lastname annotation is used to tag an element as being a person’s surname or family name. This annotation applies a tag which adds the element to the DITA bookmap’s metadata. ## Example The following…"
url: "https://www.stilo.com/docs/migrate/book/p-book-person-lastname/"
updated: "2023-12-11"
category: Annotations / Book, Map and Bookmap
tags:
  - Annotations
---

# p.book.person.lastname

## Syntax

**p.book.person.lastname**

## Purpose

The p.book.person.lastname annotation is used to tag an element as being a person’s surname or family name. This annotation applies a tag which adds the element to the DITA bookmap’s metadata.

## Example

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

![](https://www.stilo.com/wp-content/uploads/2023/10/stilo-dita-xml-annotation-p.book_.person.lastname0.png)

 

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

![](https://www.stilo.com/wp-content/uploads/2023/10/stilo-dita-xml-annotation-p.book_.person.lastname1.png)

The following is the DITA XML output for the rule:

<personname>

<honorific>Sir</honorific>

<firstname>John</firstname>

<middlename>Leroy</middlename>

** <lastname>Jenkins</lastname>**

<generationidentifier>III</generationidentifier>

</personname>
