<divGen>

<divGen> (automatically generated text division) indicates the location at which a textual division generated automatically by a text-processing application is to appear. [3.9.2. Index Entries]
Module core
Attributes Attributes att.global (xml:id, n, xml:lang) (lim.att.global.fragmentable (part)) (att.global.rendition (rendition)) (att.global.source (source))
type specifies what type of generated text division (e.g. index, table of contents, etc.) is to appear.
Derived from att.typed
Status Optional
Datatype teidata.enumerated
Sample values include:
index
an index is to be generated and inserted at this point.
toc
a table of contents
figlist
a list of figures
tablist
a list of tables
Note
Valid values are application-dependent; those shown are of obvious utility in document production, but are by no means exhaustive.
Member of
Contained by
textstructure: body div front
May contain
core: head
Note
This element is intended primarily for use in document production or manipulation, rather than in the transcription of pre-existing materials; it makes it easier to specify the location of indices, tables of contents, etc., to be generated by text preparation or word processing software.
Examples One use for this element is to allow document preparation software to generate an index and insert it in the appropriate place in the output. The example below assumes that the indexName attribute on index elements in the text has been used to specify index entries for the two generated indexes, named NAMES and THINGS:

<back>
   
<div1 type="backmat">
      
<head>Bibliography</head>
      
<!-- ... -->
   
</div1>
   
<div1 type="backmat">
      
<head>Indices</head>
      
<divGen n="Index Nominum" type="NAMES"/>
      
<divGen n="Index Rerum" type="THINGS"/>
   
</div1>
</back>
Another use for divGen is to specify the location of an automatically produced table of contents:

<front><!-- <titlePage>...</titlePage> -->
   
<divGen type="toc"/>
   
<div>
      
<head>Preface</head>
      
<p>  ... </p>
   
</div>
</front>
Source Github

<elementSpec module="core" ident="divGen">
   
<gloss>automatically generated text division</gloss>
   
<desc>indicates the location at which a textual division generated
    automatically by a text-processing application is to appear.
</desc>
   
<classes>
      
<memberOf key="att.global"/>
      
<memberOf key="model.frontPart"/>
      
<memberOf key="model.divGenLike"/>
      
<memberOf key="att.typed"/>
   
</classes>
   
<content>
      
<classRef key="model.headLike" minOccurs="0" maxOccurs="unbounded"/>
   
</content>
   
<attList>
      
<attDef ident="type" usage="opt" mode="change">
         
<desc>specifies what type of generated text division (e.g. index,
            table of contents, etc.) is to appear.
</desc>
         
<datatype>
            
<dataRef key="teidata.enumerated"/>
         
</datatype>
         
<valList type="open" mode="add">
            
<valItem ident="index">
               
<desc>an index is to be generated and inserted at this point.</desc>
            
</valItem>
            
<valItem ident="toc">
               
<desc>a table of contents</desc>
            
</valItem>
            
<valItem ident="figlist">
               
<desc>a list of figures</desc>
            
</valItem>
            
<valItem ident="tablist">
               
<desc>a list of tables</desc>
            
</valItem>
         
</valList>
      
</attDef>
   
</attList>
</elementSpec>