---
title: p.book.person.locality
description: "## Syntax **p.book.person.locality**   ## Purpose The p.book.person.locality annotation is used to tag an element as being the village, town, city, or other municipality equivalent in a person’s address. It can also include the postal or ZIP code. This annotation…"
url: "https://www.stilo.com/docs/migrate/book/p-book-person-locality/"
updated: "2023-12-04"
category: Annotations / Book, Map and Bookmap
tags:
  - Annotations
---

# p.book.person.locality

## Syntax

**p.book.person.locality**

 

## Purpose

The p.book.person.locality annotation is used to tag an element as being the village, town, city, or other municipality equivalent in a person’s address. It can also include the postal or ZIP code. This annotation applies a tag which adds the element to the DITA bookmap’s metadata.

## Examples

The following is an example of a time where you might want to use the p.book.person.locality annotation:

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

*Note: the relevant paragraph has been marked in bold for this example. The paragraph is not bold in the source document.*

The following is an example of a rule that will apply p.book.person.locality:

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

The following is the DITA XML output for the previous rule:

<addressdetails>

<thoroughfare>123 Example Avenue</thoroughfare>

**<locality>Ottawa</locality>**

<administrativearea>Ontario</administrativearea>

<country>Canada</country>

</addressdetails>

````
