https://github.com/TEIC/TEI
Raw File
Tip revision: 347c64fac3fa1a64ade0d8d1842813d4b8f7acec authored by Hugh Cayless on 12 May 2017, 16:57:59 UTC
Updates.
Tip revision: 347c64f
examples-prefixDef.html

<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml"><!--THIS IS A GENERATED FILE. DO NOT EDIT (98) --><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Example: &lt;prefixDef&gt; (prefix definition) </title><link href="guidelines.css" rel="stylesheet" type="text/css" /><link href="odd.css" rel="stylesheet" type="text/css" /><meta content="Text Encoding Initiative Consortium XSLT stylesheets" name="generator" /><meta property="Language" content="en" /><meta property="DC.Title" content="Example: prefixDef (prefix definition) " /><meta property="DC.Language" content="SCHEME=iso639 en" /><meta property="DC.Creator.Address" content="tei@oucs.ox.ac.uk" /><meta charset="utf-8" /><script type="text/javascript" src="jquery-1.2.6.min.js"></script><script type="text/javascript" src="columnlist.js"></script><script type="text/javascript" src="popupFootnotes.js"></script><script type="text/javascript">
        $(function() {
         $('ul.attrefs-class').columnizeList({cols:3,width:30,unit:'%'});
         $('ul.attrefs-element').columnizeList({cols:3,width:30,unit:'%'});
         $(".displayRelaxButton").click(function() {
           $(this).parent().find('.RNG_XML').toggle();
           $(this).parent().find('.RNG_Compact').toggle();
         });
         $(".tocTree .showhide").click(function() {
          $(this).find(".tocShow,.tocHide").toggle();
          $(this).parent().find("ul.continuedtoc").toggle();
	  });
        })
    </script><script type="text/javascript"><!--
var displayXML=0;
states=new Array()
states[0]="element-a"
states[1]="element-b"
states[2]="element-c"
states[3]="element-d"
states[4]="element-e"
states[5]="element-f"
states[6]="element-g"
states[7]="element-h"
states[8]="element-i"
states[9]="element-j"
states[10]="element-k"
states[11]="element-l"
states[12]="element-m"
states[13]="element-n"
states[14]="element-o"
states[15]="element-p"
states[16]="element-q"
states[17]="element-r"
states[18]="element-s"
states[19]="element-t"
states[20]="element-u"
states[21]="element-v"
states[22]="element-w"
states[23]="element-x"
states[24]="element-y"
states[25]="element-z"

function startUp() {

}

function hideallExcept(elm) {
for (var i = 0; i < states.length; i++) {
 var layer;
 if (layer = document.getElementById(states[i]) ) {
  if (states[i] != elm) {
    layer.style.display = "none";
  }
  else {
   layer.style.display = "block";
      }
  }
 }
 var mod;
 if ( mod = document.getElementById('byMod') ) {
     mod.style.display = "none";
 }
}

function showall() {
 for (var i = 0; i < states.length; i++) {
   var layer;
   if (layer = document.getElementById(states[i]) ) {
      layer.style.display = "block";
      }
  }
}

function showByMod() {
  hideallExcept('');
  var mod;
  if (mod = document.getElementById('byMod') ) {
     mod.style.display = "block";
     }
}

	--></script></head><body id="TOP"><div id="container"><div id="banner"><img src="Images/banner.jpg" alt="Text Encoding Initiative logo and banner" /></div></div><div class="mainhead"><h1>P5: 
    Guidelines for Electronic Text Encoding and Interchange</h1><p>Version 3.1.1a. Last updated on
	10th May 2017, revision bd8dda3</p></div><div class="main-content"><div class="miniTOC miniTOC_right"><ul class="subtoc"><li class="subtoc"></li><li class="subtoc"></li><li class="subtoc"><a class="navigation" href="index.html">Home</a></li><li class="subtoc"><a class="navigation" href="REF-ELEMENTS.html">C Elements</a></li></ul></div><h3>Example<a href="ref-prefixDef.html">: &lt;prefixDef&gt; </a>(prefix definition) </h3><p>These search results reproduce every example of the
	      use of &lt;prefixDef&gt; in the Guidelines, including all localised
	      and translated versions. In some cases, the examples have been drawn
	      from discussion of other elements in the Guidelines and illustrating
	      the use of &lt;prefixDef&gt;
	      is not the main 
	      focus of the passage in question. In other cases, examples may be direct 
	      translations of each other, and hence identical from the perspective of 
	      their encoding.</p><ul><li><b><a href="#HD"><span class="headingNumber">2 </span><span class="head">The TEI Header</span><em> (defining module)</em></a></b></li></ul><ul><li><a href="#SA"><span class="headingNumber">16 </span><span class="head">Linking, Segmentation, and Alignment</span></a></li></ul><h4 id="HD"><span class="headingNumber">2 </span><span class="head">The TEI Header</span></h4><hr /><p><a href="../../en/html/ref-prefixDef.html">&lt;prefixDef&gt;</a></p><div id="index-egXML-d39e25076" class="pre egXML_valid"><span class="element">&lt;<span class="highlightelementname">prefixDef</span> <span class="attribute">ident</span>="<span class="attributevalue">ref</span>"<br /> <span class="attribute">matchPattern</span>="<span class="attributevalue">([a-z]+)</span>"<br /> <span class="attribute">replacementPattern</span>="<span class="attributevalue">../../references/references.xml#$1</span>"&gt;</span><br /> <span class="element">&lt;p&gt;</span> In the context of this project, private URIs with<br />     the prefix "ref" point to <span class="element">&lt;gi&gt;</span>div<span class="element">&lt;/gi&gt;</span> elements in<br />     the project's global references.xml file.<br />  <span class="element">&lt;/p&gt;</span><br /><span class="element">&lt;/<span class="highlightelementname">prefixDef</span>&gt;</span></div><hr /><p><a href="../../en/html/ref-listPrefixDef.html">&lt;listPrefixDef&gt;</a></p><div id="index-egXML-d39e25126" class="pre egXML_valid"><span class="element">&lt;listPrefixDef&gt;</span><br /> <span class="element">&lt;<span class="highlightelementname">prefixDef</span> <span class="attribute">ident</span>="<span class="attributevalue">psn</span>"<br />  <span class="attribute">matchPattern</span>="<span class="attributevalue">([A-Z]+)</span>"<br />  <span class="attribute">replacementPattern</span>="<span class="attributevalue">personography.xml#$1</span>"&gt;</span><br />  <span class="element">&lt;p&gt;</span> Private URIs using the <span class="element">&lt;code&gt;</span>psn<span class="element">&lt;/code&gt;</span> <br />       prefix are pointers to <span class="element">&lt;gi&gt;</span>person<span class="element">&lt;/gi&gt;</span> <br />       elements in the personography.xml file.<br />       For example, <span class="element">&lt;code&gt;</span>psn:MDH<span class="element">&lt;/code&gt;</span> <br />       dereferences to <span class="element">&lt;code&gt;</span>personography.xml#MDH<span class="element">&lt;/code&gt;</span>.<br />   <span class="element">&lt;/p&gt;</span><br /> <span class="element">&lt;/<span class="highlightelementname">prefixDef</span>&gt;</span><br /> <span class="element">&lt;<span class="highlightelementname">prefixDef</span> <span class="attribute">ident</span>="<span class="attributevalue">bibl</span>"<br />  <span class="attribute">matchPattern</span>="<span class="attributevalue">([a-z]+[a-z0-9]*)</span>"<br />  <span class="attribute">replacementPattern</span>="<span class="attributevalue">http://www.example.com/getBibl.xql?id=$1</span>"&gt;</span><br />  <span class="element">&lt;p&gt;</span> Private URIs using the <span class="element">&lt;code&gt;</span>bibl<span class="element">&lt;/code&gt;</span> prefix can be<br />       expanded to form URIs which retrieve the relevant<br />       bibliographical reference from www.example.com.<br />   <span class="element">&lt;/p&gt;</span><br /> <span class="element">&lt;/<span class="highlightelementname">prefixDef</span>&gt;</span><br /><span class="element">&lt;/listPrefixDef&gt;</span></div><h4 id="SA"><span class="headingNumber">16 </span><span class="head">Linking, Segmentation, and Alignment</span></h4><hr /><p><a href="SA.html#SAPU"><span class="headingNumber">16.2.3 </span><span class="head">Using Abbreviated Pointers</span></a></p><div id="index-egXML-d39e118992" class="pre egXML_valid"><span class="element">&lt;listPrefixDef&gt;</span><br /> <span class="element">&lt;<span class="highlightelementname">prefixDef</span> <span class="attribute">ident</span>="<span class="attributevalue">psn</span>"<br />  <span class="attribute">matchPattern</span>="<span class="attributevalue">([a-z]+)</span>"<br />  <span class="attribute">replacementPattern</span>="<span class="attributevalue">../../references/people/personography.xml#$1</span>"&gt;</span><br />  <span class="element">&lt;p&gt;</span> In the context of this project, private URIs with the prefix<br />       "psn" point to <span class="element">&lt;gi&gt;</span>person<span class="element">&lt;/gi&gt;</span> elements in the project's<br />       personography.xml file.<br />   <span class="element">&lt;/p&gt;</span><br /> <span class="element">&lt;/<span class="highlightelementname">prefixDef</span>&gt;</span><br /><span class="element">&lt;/listPrefixDef&gt;</span></div><hr /><p><a href="SA.html#SAPU"><span class="headingNumber">16.2.3 </span><span class="head">Using Abbreviated Pointers</span></a></p><div id="index-egXML-d39e119071" class="pre egXML_valid"><span class="element">&lt;<span class="highlightelementname">prefixDef</span> <span class="attribute">ident</span>="<span class="attributevalue">psn</span>"<br /> <span class="attribute">matchPattern</span>="<span class="attributevalue">([a-z]+)</span>"<br /> <span class="attribute">replacementPattern</span>="<span class="attributevalue">http://www.example.com/personography.html#$1</span>"&gt;</span><br /> <span class="element">&lt;p&gt;</span> Private URIs with the prefix "psn" can be converted to point<br />     to a fragment on the Personography page of the project Website.<br />  <span class="element">&lt;/p&gt;</span><br /><span class="element">&lt;/<span class="highlightelementname">prefixDef</span>&gt;</span></div></div><div class="stdfooter autogenerated"><p>
    [<a href="../../en/html/examples-prefixDef.html">English</a>]
    [<a href="../../de/html/examples-prefixDef.html">Deutsch</a>]
    [<a href="../../es/html/examples-prefixDef.html">Español</a>]
    [<a href="../../it/html/examples-prefixDef.html">Italiano</a>]
    [<a href="../../fr/html/examples-prefixDef.html">Français</a>]
    [<a href="../../ja/html/examples-prefixDef.html">日本語</a>]
    [<a href="../../ko/html/examples-prefixDef.html">한국어</a>]
    [<a href="../../zh-TW/html/examples-prefixDef.html">中文</a>]
    </p><hr /><div class="footer"><a class="plain" href="http://www.tei-c.org/About/">TEI Consortium</a> | <a class="plain" href="http://www.tei-c.org/About/contact.xml">Feedback</a></div><hr /><address><br />TEI Guidelines <a class="link_ref" href="AB.html#ABTEI4">Version</a> <a class="link_ref" href="../../readme-3.1.1.html">3.1.1a</a>. Last updated on <span class="date">10th May 2017</span>, revision <a class="link_ref" href="https://github.com/TEIC/TEI/commit/bd8dda3">bd8dda3</a>. This page generated on 2017-05-12T12:30:09Z.</address></div></body></html>
back to top