home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="iso-8859-1"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <title>Numbering Sections and Table of Contents</title>
- <style type="text/css">
- </style>
- <link href="style.css" rel="stylesheet" type="text/css" />
- </head>
-
- <body xml:lang="en" lang="en">
-
- <div>
- <img alt="Amaya" src="../../resources/icons/22x22/logo.png" class="logo" />
-
- <p class="nav"><a href="Printing.html" accesskey="p"><img alt="previous"
- src="../../resources/icons/misc/left.png" /></a> <a href="Manual.html"
- accesskey="t"><img alt="top" src="../../resources/icons/misc/up.png" /></a>
- <a href="MakeBook.html" accesskey="n"><img alt="next"
- src="../../resources/icons/misc/right.png" /></a></p>
- </div>
-
- <div id="page_body">
- <h1>Numbering Sections</h1>
-
- <p>Section headings (<code>H2</code>to<code>H6</code> elements) can be
- automatically numbered to reflect the document structure. The <code>H1</code>
- element is supposed to be the document title and is not numbered. Other
- headings receive a number that is computed according to their type and their
- position in the document structure. These numbers are generated in the
- document itself and previous generated numbers are removed, each times the
- <strong>XHTML>Section numbering</strong> command is called.</p>
-
- <h1>Table of Contents</h1>
-
- <p>The <strong>XHTML>Generate Table of contents</strong> command collects
- all following <code>H2</code>to<code>H6</code> elements in the document to
- generate a table of contents at the current position.</p>
-
- <p>This command adds:</p>
- <ul>
- <li>An <code>id</code> attribute to each <code>H2</code> to <code>H6</code>
- element which doesn't have this attribute.</li>
- <li>A division with a "toc" <code>class</code> attribute value and a
- cascade of unnumbered lists at the current position.</li>
- <li>A list item for each H2 to H6 element including a link which points to
- the corresponding element.
- <p>The link element contents is a copy of the Hi element. If the Hi
- element is numbered, this number is also copied.</p>
- </li>
- </ul>
- </div>
- </body>
- </html>
-