Node type: Block element (can contain only other elements)
Whitespace: Not protected
An index.
Attribute: listFormat (index list)
One or more:
= Optional element or attribute
<list listFormat="index">
<title paraID="21">P</title>
<listItem>
<entry paraID="22">Pratt, Parley P.</entry>
<list listFormat="index">
<listItem>
<entry paraID="23">learned of eternal family organization from Joseph Smith</entry>
<locator>221</locator>
<secondary>
<locator>220–22</locator>
</secondary>
</listItem>
<listItem>
<entry paraID="24">prepared 1837 edition of Book of Mormon</entry>
<locator>64</locator>
</listItem>
<listItem>
<entry paraID="25">traveled to ask Joseph for relief of Missouri Saints</entry>
<locator>138</locator>
<locator>141</locator>
</listItem>
<listItem>
<entry paraID="26">witnessed the Prophet rebuking prison guards</entry>
<locator>207</locator>
</listItem>
</list>
</listItem>
</list>
P |
|
Pratt, Parley P. |
|
learned of eternal family organization from Joseph Smith, 221 (220–22) | |
prepared 1837 edition of Book of Mormon, 64 | |
traveled to ask Joseph for relief of Missouri Saints, 138, 141 | |
witnessed the Prophet rebuking prison guards, 207 |
An index in ldsXML is a type of list. The list element wrap list items, which include entries, locators, and any embedded lists.
Use paragraph styles like the following to mark index titles.
Use paragraph styles like the following to mark index entries:
Only one entry is allowed per listItem.
Use paragraph styles like the following to mark index locators:
Mark secondary references to these locators as follows:
Note that each part of the index should be on a line by itself. These will be combined by transform in the display channels. The exception is locators, which can be grouped by line (for example, “3, 5–8”). If an item will ever appear on the Web, it may be advantageous to have each locator on a line by itself.
Embedding is often used to create index subentries (see sample). The number in the stylenames indicates the level of embedding.
For lists embedded in other structures, use the xmlPara paragraph style to enter beginning and ending <list> tags around the index, around any indexes that contain the index, and around any index contained by those indexes.