Skip to content

<lg>

line group

contains one or more verse lines functioning as a formal unit, e.g. a stanza, refrain, verse paragraph, etc.

Module coreCOVECODVDRPAL

Attributes

Classes and content

Member of
May contain

textcrit

Contained by

cmc

figures

linking

namesdates

spoken

tagdocs

textcrit

verse

Note

contains verse lines or nested line groups only, possibly prefixed by a heading.

Example

<lg type="free">
  <l>Let me be my own fool</l>
  <l>of my own making, the sum of it</l>
</lg>
<lg type="free">
  <l>is equivocal.</l>
  <l>One says of the drunken farmer:</l>
</lg>
<lg type="free">
  <l>leave him lay off it. And this is</l>
  <l>the explanation.</l>
</lg>

Schematron

<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" scheme="schematron" ident="atleast1oflggapl" xml:lang="en">
    <constraint>
      <sch:rule context="tei:lg">
        <sch:assert test="count(descendant::tei:lg|descendant::tei:l|descendant::tei:gap) &gt; 0">An &lt;lg&gt; element must contain at least one child &lt;l&gt;, &lt;lg&gt;, or &lt;gap&gt; element.</sch:assert>
      </sch:rule>
    </constraint>
  </constraintSpec>
<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="abstractModel-structure-lg-in-l" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:lg">
        <sch:report test="ancestor::tei:l[not(.//tei:note//tei:lg[. = current()])]">Abstract model violation: Lines may not contain line groups.</sch:report>
      </sch:rule>
    </constraint>
  </constraintSpec>

Content model

<content>
    <sequence>
      <alternate minOccurs="0" maxOccurs="unbounded">
        <classRef key="model.divTop"/>
        <classRef key="model.global"/>
      </alternate>      
      <alternate>
        <classRef key="model.lLike"/>
        <classRef key="model.stageLike"/>
        <classRef key="model.labelLike"/>
        <classRef key="model.pPart.transcriptional"/>
        <elementRef key="lg"/>
      </alternate>
      <alternate minOccurs="0" maxOccurs="unbounded">
        <classRef key="model.lLike"/>
        <classRef key="model.stageLike"/>
        <classRef key="model.labelLike"/>
        <classRef key="model.pPart.transcriptional"/>
        <classRef key="model.global"/>
        <elementRef key="lg"/>
      </alternate>
      <sequence minOccurs="0" maxOccurs="unbounded">        
        <classRef key="model.divBottom"/>
        <classRef key="model.global" minOccurs="0" maxOccurs="unbounded"/>
      </sequence>
    </sequence>
  </content>