<?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$
$Id$
-->
<?xml-model href="http://tei.oucs.ox.ac.uk/jenkins/job/TEIP5/lastSuccessfulBuild/artifact/P5/release/xml/tei/odd/p5.nvdl" type="application/xml" schematypens="http://purl.oclc.org/dsdl/nvdl/ns/structure/1.0"?>

<elementSpec xmlns="http://www.tei-c.org/ns/1.0" module="header" ident="prefixDef">
  <gloss versionDate="2012-11-22" xml:lang="en">prefixing scheme used in <ident type="datatype">data.pointer</ident> values</gloss>
  <desc versionDate="2012-12-26" xml:lang="en">defines a prefixing scheme used in <ident type="datatype">data.pointer</ident> values,
  showing how abbreviated URIs using the scheme may be expanded into full URIs.</desc>
  <classes>
    <memberOf key="att.global"/>
    <memberOf key="att.patternReplacement"/>
  </classes>
  <content>
    <rng:zeroOrMore xmlns:rng="http://relaxng.org/ns/structure/1.0">
      <rng:ref name="model.pLike"/>
    </rng:zeroOrMore>
  </content>
  <attList xmlns:rng="http://relaxng.org/ns/structure/1.0">
    <attDef ident="ident" usage="req">
      <desc versionDate="2012-11-22" xml:lang="en">supplies a name which functions as the prefix for an abbreviated
          pointing scheme such as a private URI scheme. The prefix constitutes the 
        text preceding the first colon.</desc>
      <datatype>
        <rng:ref name="data.name"/>
      </datatype>
    </attDef>
  </attList>
  <exemplum xml:lang="en" versionDate="2012-11-22">
    <egXML xmlns="http://www.tei-c.org/ns/Examples">
      <prefixDef ident="ref" matchPattern="([a-z]+)" replacementPattern="../../references/references.xml#$1">
        <p>
          In the context of this project, private URIs with 
          the prefix "ref" point to <gi>div</gi> elements in 
          the project's global references.xml file.
        </p>
      </prefixDef>
    </egXML>
  </exemplum>
  <remarks versionDate="2013-02-05" xml:lang="en">
    <p>The abbreviated pointer may be dereferenced to produce either
    an absolute or a relative URI reference. In the latter case it is
    combined with the value of <att>xml:base</att> in force at the
    place where the pointing attribute occurs to form an absolute URI
    in the usual manner as prescribed by <ref
    target="http://www.w3.org/TR/xmlbase/">XML Base</ref>.</p>
  </remarks>
  <listRef>
    <ptr target="#SAPU"/>
  </listRef>
</elementSpec>
