initCommon(); $template->displayHeader(); ?>

3.2. ID Naming Conventions

This section explains the ID naming convention. IDs are unique identifiers that allow DocBook XML to cross-reference a section, chapter, or other element.

The following general rules apply to IDs:

Example 3.1, “Proper ID Usage” demonstrates some example ID attributes used properly.

<chapter id="ch-unique-name-of-chapter">

<section id="sn-install-make-disks">

<figure id="fig-redhat-config-kickstart-basic">

Example 3.1. Proper ID Usage


Two-Character Naming Conventions
Tag Prefix
preface pr-
chapter ch-
section sn-
figure fig-
table tb-
appendix ap-
part pt-
example ex-

Use the title of the item as the ID. Make your titles unique within a document to prevent conflicts. For example:

<chapter id="ch-how-to-fold-laundry">
  <title>How To Fold Laundry</title>
  <section id="sn-folding-shirts">
    <title>Folding Shirts</title>
displayFooter('$Date: 2008/04/10 02:37:06 $'); ?>