View Categories

p.book.organization.addressdetails

1 min read

Table of Contents

Syntax #

p.book.organization.addressdetails

 

Purpose #

The p.book.organization.addressdetails annotation is used to tag an element as containing the address of a company or other organization’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.organization.thoroughfare, p.book.organization.locality, p.book.organization.administrativearea, or p.book.organization.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.organization.thoroughfare, p.book.organization.locality, p.book.organization.administrativearea, or p.book.organization.country will automatically create an <addressdetails> element.

Examples #

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

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

Note: In this example, the paragraph is also tagged by a separate rule that applies the p.book.organization.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.

 

<organizationinfo>

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

</organizationinfo>