<div>
<div> (text division) contains a subdivision of the front, body, or back of a text. [4.1. Divisions of the Body]
Module | textstructure | ||||||||||
Attributes | Attributes att.global (xml:id, n, xml:lang) (lim.att.global.fragmentable (part)) (att.global.rendition (rendition)) (att.global.source (source)) att.written (hand)
|
||||||||||
Member of | |||||||||||
Contained by | |||||||||||
May contain | |||||||||||
Examples |
<body> <div type="part"> <head>Fallacies of Authority</head> <p>The subject of which is Authority in various shapes, and the object, to repress all exercise of the reasoning faculty.</p> <div n="1" type="chapter"> <head>The Nature of Authority</head> <p>With reference to any proposed measures having for their object the greatest happiness of the greatest number [...]</p> <div n="1.1" type="section"> <head>Analysis of Authority</head> <p>What on any given occasion is the legitimate weight or influence to be attached to authority [...] </p> </div> <div n="1.2" type="section"> <head>Appeal to Authority, in What Cases Fallacious.</head> <p>Reference to authority is open to the charge of fallacy when [...] </p> </div> </div> </div> </body> |
||||||||||
Schematron |
Only index divs are allowed as a root div element and only for vol 11.
<sch:pattern> <sch:rule context="/tei:div"> <sch:assert test="@type = 'index'">ERROR: Only divisions with @type='index' are allowed as root elements.</sch:assert> <sch:assert test="matches($uri,'vol11_')">ERROR: Only use root divs for volume 11.</sch:assert> </sch:rule> </sch:pattern> <sch:report test="(ancestor::tei:l or ancestor::tei:lg) and not(ancestor::tei:floatingText)">Abstract model violation: Lines may not contain higher-level structural elements such as div, unless div is a descendant of floatingText.</sch:report> <sch:report test="(ancestor::tei:p or ancestor::tei:ab) and not(ancestor::tei:floatingText)">Abstract model violation: p and ab may not contain higher-level structural elements such as div, unless div is a descendant of floatingText.</sch:report> |
||||||||||
Source | Github
<elementSpec rend="change" module="textstructure" ident="div"> <gloss>text division</gloss> <desc>contains a subdivision of the front, body, or back of a text.</desc> <classes> <memberOf key="att.global"/> <memberOf key="att.typed"/> <memberOf key="att.written"/> <memberOf key="model.divLike"/> </classes> <content> <sequence minOccurs="1" maxOccurs="1"> <alternate minOccurs="0" maxOccurs="unbounded"> <classRef key="model.divTop"/> <classRef key="model.global"/> </alternate> <sequence minOccurs="0" maxOccurs="1"> <alternate minOccurs="1" maxOccurs="1"> <sequence minOccurs="1" maxOccurs="unbounded"> <alternate minOccurs="1" maxOccurs="1"> <classRef key="model.divLike"/> <classRef key="model.divGenLike"/> </alternate> <classRef key="model.global" minOccurs="0" maxOccurs="unbounded"/> </sequence> <sequence minOccurs="1" maxOccurs="1"> <sequence minOccurs="1" maxOccurs="unbounded"> <alternate minOccurs="1" maxOccurs="1"> <elementRef key="schemaSpec"/> <classRef key="model.common"/> </alternate> <classRef key="model.global" minOccurs="0" maxOccurs="unbounded"/> </sequence> <sequence minOccurs="0" maxOccurs="unbounded"> <alternate minOccurs="1" maxOccurs="1"> <classRef key="model.divLike"/> <classRef key="model.divGenLike"/> </alternate> <classRef key="model.global" minOccurs="0" maxOccurs="unbounded"/> </sequence> </sequence> </alternate> <sequence minOccurs="0" maxOccurs="unbounded"> <classRef key="model.divBottom"/> <classRef key="model.global" minOccurs="0" maxOccurs="unbounded"/> </sequence> </sequence> </sequence> </content> <attList> <attDef ident="type" mode="change"> <valList mode="add" type="closed"> <valItem ident="index"> <gloss>index</gloss> <desc>An index/table of contents for a single volume.</desc> </valItem> <valItem ident="preface"> <gloss>preface</gloss> <desc>A preface or some prefatory matter to a volume or text.</desc> </valItem> <valItem ident="footnotes"> <gloss>footnotes</gloss> <desc>A set of footnotes</desc> </valItem> </valList> </attDef> </attList> </elementSpec> |