<refState>

<refState> (reference state) specifies one component of a canonical reference defined by the milestone method. [2.3.6.3 Milestone Method 2.3.6 The Reference System Declaration]
Module header — The TEI Header
Attributes
length⚓︎ specifies the fixed length of the reference component.
Status Optional
Datatype teidata.count
Note

When constructing a reference, if the reference component found is of numeric type, the length is made up by inserting leading zeros; if it is not, by inserting trailing blanks. In either case, reference components are truncated if necessary at the right hand side.

When seeking a reference, the length indicates the number of characters which should be compared. Values longer than this will be regarded as matching, if they start correctly. If no value is provided, the length is unlimited and goes to the next delimiter or to the end of the value.

delim⚓︎ (delimiter) supplies a delimiting string following the reference component.
Status Optional
Datatype teidata.text
Contained by
header: refsDecl
May contain Empty element
Example
<refState unit="bookdelim=":"/>
<refState unit="linelength="4"/>
Content model
<content>
 <empty/>
</content>
Schema Declaration
<rng:element name="refState">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:ref name="att.milestoneUnit.attributes"/>
 <rng:ref name="att.edition.attributes"/>
 <rng:optional>
  <rng:attribute name="length">
   <rng:ref name="teidata.count"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="delim">
   <rng:ref name="teidata.text"/>
  </rng:attribute>
 </rng:optional>
 <rng:empty/>
</rng:element>
element refState
{
   att.global.attributes,
   att.global.rendition.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   att.milestoneUnit.attributes,
   att.edition.attributes,
   attribute length { teidata.count }?,
   attribute delim { teidata.text }?,
   empty
}