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:
The following is an example of a rule that will apply p.book.person.addressdetails:
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>