Skip to content

<span>

associates an interpretative annotation directly with a span of text.

Module analysisAISP

Attributes

@fromgives the identifier of the node which is the starting point of the span of text being annotated; if not accompanied by a @to attribute, gives the identifier of the node of the entire span of text being annotated.
Status
Optional
Datatype
teidata.pointer
@togives the identifier of the node which is the end-point of the span of text being annotated.
Status
Optional
Datatype
teidata.pointer

Classes and content

Member of
May contain

dictionaries

header

textcrit

Character data

  • character data
Contained by

cmc

nets

spoken

tagdocs

Example

<p xml:id="para2">(The "aftermath" starts here)</p>
<p xml:id="para3">(The "aftermath" continues here)</p>
<p xml:id="para4">(The "aftermath" ends in this paragraph)</p>
<!-- ... -->
<span type="structure" from="#para2" to="#para4">aftermath</span>

Schematron

<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="target-from" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:span">
        <sch:report test="@from and @target">
          Only one of the attributes @target and @from may be supplied on &lt;<sch:name/>&gt;.
        </sch:report>
      </sch:rule>
    </constraint>
  </constraintSpec>
<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="targetto" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:span">
        <sch:report test="@to and @target">
          Only one of the attributes @target and @to may be supplied on &lt;<sch:name/>&gt;.
        </sch:report>
      </sch:rule>
    </constraint>
  </constraintSpec>
<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="tonotfrom" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:span">
        <sch:report test="@to and not(@from)">
          If @to is supplied on &lt;<sch:name/>&gt;, @from must be supplied as well.
        </sch:report>
      </sch:rule>
    </constraint>
  </constraintSpec>
<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="tofrom" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:rule context="tei:span">
        <sch:report test="contains(normalize-space(@to),' ') or contains(normalize-space(@from),' ')">
          The attributes @to and @from on &lt;<sch:name/>&gt; may each contain only a single value.
        </sch:report>
      </sch:rule>
    </constraint>
  </constraintSpec>

Content model

<content>
    <macroRef key="macro.phraseSeq.limited"/>
  </content>