<?xml version="1.0" encoding="UTF-8"?>
<!-- © TEI Consortium. Dual-licensed under CC-by and BSD2 licenses; see the file COPYING.txt for details. -->
<?xml-model href="https://jenkins.tei-c.org/job/TEIP5-dev/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" xml:id="gi-listPrefixDef" ident="listPrefixDef">
  <gloss versionDate="2012-11-22" xml:lang="en">list of prefix definitions</gloss>
  <desc versionDate="2012-11-23" xml:lang="en">contains a list of definitions of prefixing schemes used in <ident type="datatype">teidata.pointer</ident> values, showing how abbreviated URIs using each scheme may be expanded into full URIs.</desc>
  <classes>
    <memberOf key="att.global"/>
    <memberOf key="model.encodingDescPart"/>
  </classes>
  <content>
    <sequence>
      <elementRef key="desc" minOccurs="0" maxOccurs="unbounded"/>
        <alternate minOccurs="1" maxOccurs="unbounded">
          <elementRef key="prefixDef"/>
          <elementRef key="listPrefixDef"/>
        </alternate>
    </sequence>
   </content>
  <exemplum versionDate="2012-11-22" xml:lang="en">
    <p>In this example, two private URI scheme prefixes are defined and patterns are provided 
    for dereferencing them. Each prefix is also supplied with a human-readable explanation in a
    <gi>p</gi> element.</p>
    <egXML xmlns="http://www.tei-c.org/ns/Examples" xml:id="gi-listPrefixDef-egXML-dd">
      <listPrefixDef>
        <prefixDef ident="psn" matchPattern="([A-Z]+)" replacementPattern="personography.xml#$1">
          <p>
            Private URIs using the <code>psn</code> 
            prefix are pointers to <gi>person</gi> 
            elements in the personography.xml file. 
            For example, <code>psn:MDH</code> 
            dereferences to <code>personography.xml#MDH</code>.
          </p>
        </prefixDef>
        <prefixDef ident="bibl" matchPattern="([a-z]+[a-z0-9]*)" replacementPattern="http://www.example.com/getBibl.xql?id=$1">
          <p>
            Private URIs using the <code>bibl</code> prefix can be 
            expanded to form URIs which retrieve the relevant 
            bibliographical reference from www.example.com.
          </p>
        </prefixDef>
      </listPrefixDef>
    </egXML>
  </exemplum>
  <listRef>
    <ptr target="#SAPU"/>
  </listRef>
</elementSpec>
