Skip to content

<div>

text division

contains a subdivision of the front, body, or back of a text.

Module textstructureDSDIV

Attributes

Classes and content

Member of
May contain

cmc

header

msdescription

Contained by

textcrit

textstructure

Example

<body>
  <div type="part" xml:id="DS-fallacies-of-authority">
    <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" xml:id="DS-the-nature-of-authority">
      <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" xml:id="DS-analysis-of-authority">
        <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" xml:id="DS-appeal-to-authority-in-what-cases-fallacious">
        <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

<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="abstractModel-structure-div-in-l" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:l//tei:div">
        <sch:assert test="ancestor::tei:floatingText">
          Abstract model violation: Metrical lines (&lt;l&gt; elements) may not contain higher-level structural elements such as &lt;div&gt;, unless &lt;div&gt; is a descendant of &lt;floatingText&gt;.
        </sch:assert>
      </sch:rule>
    </constraint>
  </constraintSpec>
<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="abstractModel-structure-div-in-ab-or-p" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:div">
        <sch:report test="(ancestor::tei:p or ancestor::tei:ab) and not(ancestor::tei:floatingText)">
          Abstract model violation: &lt;p&gt; and &lt;ab&gt; may not contain higher-level structural elements such as &lt;div&gt;, unless &lt;div&gt; is a descendant of &lt;floatingText&gt;.
        </sch:report>
      </sch:rule>
    </constraint>
  </constraintSpec>

Content model

<content>
    <sequence>
      <alternate minOccurs="0" maxOccurs="unbounded">
        <classRef key="model.divTop"/>
        
        <classRef key="model.global"/>
      </alternate>
      <sequence minOccurs="0">
        <alternate>
          <sequence minOccurs="1" maxOccurs="unbounded">
            <alternate>
              <classRef key="model.divLike"/>
              <classRef key="model.divGenLike"/>
            </alternate>
            <classRef key="model.global" minOccurs="0" maxOccurs="unbounded"/>
          </sequence>
          <sequence>
            <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>
                <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>