Skip to content

<refsDecl>

references declaration

specifies how canonical references are constructed for this text.

Module headerHD54MHD5HD54

Attributes

Classes and content

Member of
May contain

core

linking

Contained by

Examples

<refsDecl>
  <cRefPattern matchPattern="([A-Za-z0-9]+) ([0-9]+):([0-9]+)" replacementPattern="#xpath(//body/div[@n='$1']/div[$2]/div3[$3])"/>
</refsDecl>

This example is a formal representation for the referencing scheme described informally in the following example.

<refsDecl>
  <p>References are made up by concatenating the value for the
    <att>n</att> attribute on the highest level <gi>div</gi>
element, followed by a space, followed by the sequential
number of the next level<gi>div</gi> followed by a colon
followed by the sequential number of the next (and lowest)
level<gi>div</gi>.</p>
</refsDecl>

Schematron

<constraintSpec xmlns:sch="http://purl.oclc.org/dsdl/schematron" ident="refsDecl-is-declarable" scheme="schematron" xml:lang="en">
    <constraint>
      <sch:pattern is-a="declarable">
        <sch:param name="tde" value="tei:refsDecl"/>
      </sch:pattern>
    </constraint>
  </constraintSpec>

Content model

<content>
    <alternate>
      <classRef key="model.pLike" minOccurs="1" maxOccurs="unbounded"/>
      <elementRef key="citeStructure" minOccurs="1" maxOccurs="unbounded"/>
      <elementRef key="cRefPattern" minOccurs="1" maxOccurs="unbounded"/>
      <elementRef key="refState" minOccurs="1" maxOccurs="unbounded"/>
    </alternate>
  </content>