<divGen>

<divGen> (自動產生的文字區段) 指出文件處理軟體運作下自動產生的文字區段所出現的位置。 3.8.2 Index Entries
組件core — 3 Elements Available in All TEI Documents
屬性
type具體指明何種文字區段 (如索引、目錄等) 會出現。
狀態 非必備的
資料類型

<rng:ref name="data.enumerated"/>
data.enumerated
實例值包含:
index
索引會產生並置入於此處
toc
目錄
figlist
圖表列表
tablist
表格列表
屬於
可包含
core: head
宣告

<rng:element name="divGen">
<rng:ref name="att.global.attributes"/>
<rng:optional>
 <rng:attribute name="type">
  <rng:ref name="data.enumerated"/>
 </rng:attribute>
</rng:optional>
<rng:zeroOrMore>
 <rng:ref name="model.headLike"/>
</rng:zeroOrMore>
</rng:element>
element divGen
{
   att.global.attributes,
   attribute type { data.enumerated }?,
   model.headLike*
}
例子

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>
  <listBibl>
   <bibl/>
  </listBibl>
 </div1>
 <div1 type="backmat">
  <head>Indices</head>
  <divGen n="Index Nominumtype="NAMES"/>
  <divGen n="Index Rerumtype="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>