<?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: macroRef.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="macroRef">
  <desc>points to the specification for some pattern 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 pattern 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="myTEI"
		  source="http://www.tei-c.org/Vault/P5/current/xml/tei/odd/p5subset.xml">
	<!-- ... -->
	<macroRef key="data.text" source="tei:1.5.0"/>
	<!-- ... -->
      </schemaSpec>
    </egXML>
  </exemplum>
  <remarks>
    <p>Patterns or macros are identified by the name supplied as value for the
    <att>ident</att> attribute on the <gi>macroSpec</gi> element in
    which they are declared. All TEI macro names are unique.
    </p>
  </remarks>
</elementSpec>
