home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 May / Gamestar_73_2005-05_dvd.iso / Programy / amaya / amaya-WinXP-9.1.exe / doc / html / Numbering.html < prev    next >
Encoding:
Extensible Markup Language  |  2004-09-14  |  2.4 KB  |  63 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6.   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7.   <title>Numbering Sections and Table of Contents</title>
  8.   <style type="text/css">
  9.  </style>
  10.   <link href="style.css" rel="stylesheet" type="text/css" />
  11. </head>
  12.  
  13. <body xml:lang="en" lang="en">
  14.  
  15. <table border="0" width="100%" summary="toc">
  16.   <tbody>
  17.     <tr>
  18.       <td><p><img alt="W3C" src="../images/w3c_home" /> <img alt="Amaya"
  19.         src="../images/amaya.gif" /></p>
  20.       </td>
  21.       <td><p align="right"><a href="Printing.html" accesskey="p"><img
  22.         alt="previous" src="../images/left.gif" /></a> <a href="Manual.html"
  23.         accesskey="t"><img alt="top" src="../images/up.gif" /></a> <a
  24.         href="MakeBook.html" accesskey="n"><img alt="next"
  25.         src="../images/right.gif" /></a></p>
  26.       </td>
  27.     </tr>
  28.   </tbody>
  29. </table>
  30.  
  31. <div id="page_body">
  32. <h1>Numbering Sections</h1>
  33.  
  34. <p>Section headings (<code>H2</code>to<code>H6</code> elements) can be
  35. automatically numbered to reflect the document structure. The <code>H1</code>
  36. element is supposed to be the document title and is not numbered. Other
  37. headings receive a number that is computed according to their type and their
  38. position in the document structure. These numbers are generated in the
  39. document itself and previous generated numbers are removed, each times the
  40. <strong>XHTML>Section numbering</strong> command is called.</p>
  41.  
  42. <h1>Table of Contents</h1>
  43.  
  44. <p>The <strong>XHTML>Generate Table of contents</strong> command collects
  45. all following <code>H2</code>to<code>H6</code> elements in the document to
  46. generate a table of contents at the current position.</p>
  47.  
  48. <p>This command adds:</p>
  49. <ul>
  50.   <li>An <code>id</code> attribute to each <code>H2</code> to <code>H6</code>
  51.     element which doesn't have this attribute.</li>
  52.   <li>A division with a "toc" <code>class</code> attribute value and a
  53.     cascade of unnumbered lists at the current position.</li>
  54.   <li>A list item for each H2 to H6 element including a link which points to
  55.     the corresponding element.
  56.     <p>The link element contents is a copy of the Hi element. If the Hi
  57.     element is numbered, this number is also copied.</p>
  58.   </li>
  59. </ul>
  60. </div>
  61. </body>
  62. </html>
  63.