<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright TEI Consortium.
    Dual-licensed under CC-by and BSD2 licences
    See the file COPYING.txt for details
    $Date: 2012-12-26 12:45:24 +0000 (Wed, 26 Dec 2012) $
    $Id: classRef.xml 11265 2012-12-26 12:45:24Z rahtz $
-->

<elementSpec xmlns="http://www.tei-c.org/ns/1.0" xmlns:s="http://www.ascc.net/xml/schematron" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0" module="tagdocs" ident="classRef">
  <desc>points to the specification for an attribute or model class which is to be included in a schema</desc>
  <classes>
    <memberOf key="att.global"/>
    <memberOf key="model.oddRef"/>
    <memberOf key="att.readFrom"/>
  </classes>
  <content>
    <rng:empty/>
  </content>
  <attList>
    <attDef ident="key" usage="req">
      <desc>the identifier used for the required class within the
	source indicated.</desc>
      <datatype>
        <rng:data type="NCName"/>
      </datatype>
    </attDef>
  </attList>
  <exemplum xml:lang="en">
    <egXML xmlns="http://www.tei-c.org/ns/Examples">
    <schemaSpec ident="myTEIe" start="TEI">
     <moduleRef key="tei"/>
     <moduleRef key="core"
      include="abbr add core addrLine address author bibl biblScope choice cit corr date del desc divGen editor emph expan foreign gap gloss graphic head hi index item l label lb lg list listBibl  mentioned milestone name note num orig p pb ptr pubPlace publisher q ref reg relatedItem resp respStmt rs sic soCalled sp speaker stage teiCorpus term time title unclear"/>
     <moduleRef key="header"
      include="authority availability catRef category change classCode classDecl creation distributor edition editionStmt editorialDecl encodingDesc extent fileDesc funder idno keywords langUsage language licence notesStmt principal profileDesc projectDesc publicationStmt refsDecl revisionDesc samplingDecl seriesStmt sourceDesc sponsor taxonomy teiHeader textClass titleStmt"/>
     <moduleRef key="textstructure"
      include="TEI argument back body byline closer dateline div docAuthor docDate docEdition docImprint docTitle epigraph front group opener postscript salute signed text titlePage titlePart trailer"/>
     <classRef key="att.global.facs"/>
    </schemaSpec>
    </egXML>
  </exemplum>
  <remarks>
    <p>Attribute and model classes are identified by the name supplied as value for the
    <att>ident</att> attribute on the <gi>classSpec</gi> element in
    which they are declared. All TEI  names are unique; attribute
    class names conventionally begin with the latters <code>att.</code>.
    </p>
  </remarks>
</elementSpec>
