tei:classRef

points to the specification for an attribute or model class which is to be
included in a schema [22.6. Class Specifications]

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
ana restriction of list of xs:anyURI optional
(analysis) indicates one or more elements containing interpretations of
the element on which the ana attribute appears.
cert union of(xs:double, restriction of xs:token) optional
(certainty) signifies the degree of certainty associated with the
intervention or interpretation.
change restriction of list of xs:anyURI optional
points to one or more change elements documenting a state or revision
campaign to which the element bearing this attribute and its children have been assigned
by the encoder.
context optional
supplies an XPath identifying a context within which this component of a
content model must be found
copyOf xs:anyURI optional
points to an element of which the current element is a
copy.
corresp restriction of list of xs:anyURI optional
(corresponds) points to elements that correspond to the current element in
some way.
except list of xs:NCName optional
supplies a list of class members which are to be excluded from the
schema being defined.
exclude restriction of list of xs:anyURI optional
points to elements that are in exclusive alternation with the current
element.
expand restriction of xs:token optional
indicates how references to this class within a content model should be
interpreted.
facs restriction of list of xs:anyURI optional
(facsimile) points to all or part of an image which corresponds with the
content of the element.
include list of xs:NCName optional
supplies a list of class members which are to be included in the schema
being defined.
key xs:NCName required
the identifier used for the required class within the source
indicated.
maxOccurs union of(xs:nonNegativeInteger, restriction of xs:token) 1 optional
(maximum number of occurences) indicates the largest number of times this
component may occur.
minOccurs xs:nonNegativeInteger 1 optional
(minimum number of occurences) indicates the smallest number of times this
component may occur.
n xs:string optional
(number) gives a number (or other label) for an element, which is not
necessarily unique within the document.
next xs:anyURI optional
points to the next element of a virtual aggregate of which the current
element is part.
prev xs:anyURI optional
(previous) points to the previous element of a virtual aggregate of which
the current element is part.
rend restriction of list of restriction of xs:token optional
(rendition) indicates how the element in question was rendered or
presented in the source text.
rendition restriction of list of xs:anyURI optional
points to a description of the rendering or presentation used for this
element in the source text.
resp restriction of list of xs:anyURI optional
(responsible party) indicates the agency responsible for the intervention
or interpretation, for example an editor or transcriber.
sameAs xs:anyURI optional
points to an element that is the same as the current
element.
select restriction of list of xs:anyURI optional
selects one or more alternants; if one alternant is selected, the
ambiguity or uncertainty is marked as resolved. If more than one alternant is selected,
the degree of ambiguity or uncertainty is marked as reduced by the number of alternants
not selected.
source xs:anyURI optional
specifies the source from which declarations and definitions for the
components of the object being defined may be obtained.
style xs:string optional
contains an expression in some formal style definition language which
defines the rendering or presentation used for this element in the source
text
synch restriction of list of xs:anyURI optional
(synchronous) points to elements that are synchronous with the current
element.
xml:base xs:anyURI optional
provides a base URI reference with which applications can resolve relative URI references into absolute URI references.
xml:id xs:ID optional
(identifier) provides a unique identifier for the element bearing the attribute.
xml:lang union of(xs:language, restriction of xs:token) optional
(language) indicates the language of the element content using a tag generated according to BCP 47.
xml:space restriction of xs:token optional
signals an intention about how white space should be managed by applications.

Used By

Source

<xs:element name="classRef">
  <xs:annotation>
    <xs:documentation>points to the specification for an attribute or model class which is to be included in a schema [22.6. Class Specifications]</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attributeGroup ref="tei:att.global.attributes"/>
    <xs:attributeGroup ref="tei:att.repeatable.attributes"/>
    <xs:attributeGroup ref="tei:att.readFrom.attributes"/>
    <xs:attribute name="key" use="required" type="xs:NCName">
      <xs:annotation>
        <xs:documentation>the identifier used for the required class within the source indicated.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="expand">
      <xs:annotation>
        <xs:documentation>indicates how references to this class within a content model should be interpreted.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="alternate">
            <xs:annotation>
              <xs:documentation>any one member of the class may appear</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="sequence">
            <xs:annotation>
              <xs:documentation>a single occurrence of all members of the class may appear in sequence</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="sequenceOptional">
            <xs:annotation>
              <xs:documentation>a single occurrence of one or more members of the class may appear in sequence</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="sequenceOptionalRepeatable">
            <xs:annotation>
              <xs:documentation>one or more occurrences of one or more members of the class may appear in sequence.</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="sequenceRepeatable">
            <xs:annotation>
              <xs:documentation>one or more occurrences of all members of the class may appear in sequence</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="include">
      <xs:annotation>
        <xs:documentation>supplies a list of class members which are to be included in the schema being defined.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:list itemType="xs:NCName"/>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="except">
      <xs:annotation>
        <xs:documentation>supplies a list of class members which are to be excluded from the schema being defined.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:list itemType="xs:NCName"/>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

Sample