---
title: p.book.person.addressdetails
description: "## Syntax **p.book.person.addressdetails** ## Purpose The p.book.person.addressdetails annotation is used to tag an element as containing the address of a person’s street address. This element contains , , , and elements to form a full street address. Applying this annotation…"
url: "https://www.stilo.com/docs/migrate/prolog/p-book-person-addressdetails/"
updated: "2023-12-04"
category: Annotations / Prolog
tags:
  - Annotations
---

# p.book.person.addressdetails

## Syntax

**p.book.person.addressdetails**

## Purpose

The p.book.person.addressdetails annotation is used to tag an element as containing the address of a person’s street address. This element contains <thoroughfare>, <locality>, <administrativearea>, and <country> elements to form a full street address.

Applying this annotation to an element not tagged with p.book.person.thoroughfare, p.book.person.locality, p.book.person.administrativearea, or p.book.person.country will create a generic <data> element instead of <addressdetails>.

The use of this annotation is not required to create an <addressdetails> element in a book’s metadata. Applying the annotations p.book.person.thoroughfare, p.book.person.locality, p.book.person.administrativearea, or p.book.person.country will automatically create an <addressdetails> element.

## Examples

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

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

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

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

*Note: In this example, the paragraph is also tagged by a separate rule that applies the p.book.person.thoroughfare annotation. This ensures that <addressdetails> tags are created instead of generic <data> tags.*

 

The following is an example of the DITA output you would get from this annotation.

 

<personinfo>

<addressdetails>440 Laurier Avenue West, Ottawa, Ontario, Canada</addressdetails>

</personinfo>

````
