5. Specialised Features
5.1. Generated Divisions
Most modern document production systems have the ability to automatically generate
whole sections such as a table of contents or an index. The TEI OUCS scheme provides an
element to mark the location at which such a generated section should be placed.
The <divGen> element can be placed anywhere that a division element would be
legal, as in the following example:
<front>
<titlePage> ... </titlePage>
<divGen type="toc"/>
<div type="Preface">
<head>Preface</head> ... </div></front>
<body> ... </body>
<back>
<div>
<head>Appendix</head> ... </div>
<divGen type="index" n="Index"/></back>
When an index or table of contents is to be encoded (rather than one being generated) for some reason, the <list> element discussed in section 4.6. Lists should be used.
Up: Contents Previous: 4. Coding your document Next: Rends

