<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]
Moduleheader — 2 The TEI Header
Attributesatt.global (@xml:id, @n, @xml:lang, @rend, @style, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) att.milestoneUnit (@unit) att.sourced (@ed)
lengthspecifies the fixed length of the reference component.
Status Optional
Datatype

<rng:ref name="data.count"/>
data.count
Values Should be a positive integer; if no value is provided, the length is unlimited and goes to the next delimiter or to the end of the value.
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.
delim(delimiter) supplies a delimiting string following the reference component.
Status Optional
Datatype

<rng:text/>
text
Values If a single space is used it is interpreted as whitespace.
Used by
Contained by
header: refsDecl
May containEmpty element
Declaration

<rng:element name="refState">
 <rng:ref name="att.global.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.milestoneUnit.attributes"/>
 <rng:ref name="att.sourced.attributes"/>
 <rng:optional>
  <rng:attribute name="length">
   <rng:ref name="data.count"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="delim">
   <rng:text/>
  </rng:attribute>
 </rng:optional>
 <rng:empty/>
</rng:element>
element refState
{
   att.global.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.milestoneUnit.attributes,
   att.sourced.attributes,
   attribute length { data.count }?,
   attribute delim { text }?,
   empty
}
Example
<refState unit="book" delim=":"/>
<refState unit="line" length="4"/>