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
ref-model.html

<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><!--THIS FILE IS GENERATED FROM AN XML MASTER. DO NOT EDIT (7)--><title>TEI element model </title><meta property="Language" content="en" /><meta property="DC.Title" content="TEI element model " /><meta property="DC.Language" content="SCHEME=iso639 en" /><meta property="DC.Creator.Address" content="tei@oucs.ox.ac.uk" /><meta charset="utf-8" /><link href="guidelines.css" rel="stylesheet" type="text/css" /><link href="odd.css" rel="stylesheet" type="text/css" /><link rel="stylesheet" media="print" type="text/css" href="guidelines-print.css" /><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><div><h3 class="oddSpec" id="model">&lt;model&gt;</h3><table class="wovenodd"><tr><td colspan="2" class="wovenodd-col2"><span class="label">&lt;model&gt; </span>describes the processing intended for a specified element. [<a class="link_ptr" href="TD.html#TDPMPM" title="The TEI processing model"><span class="headingNumber">22.5.5.1 </span>The TEI processing model</a>]</td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Module</span></td><td class="wovenodd-col2">tagdocs — Documentation Elements</td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Attributes</span></td><td class="wovenodd-col2"><a class="link_odd" title="provides attributes common to all elements in the TEI encoding scheme." href="ref-att.global.html">att.global</a> (<span class="attribute">@xml:id</span>, <span class="attribute">@n</span>, <span class="attribute">@xml:lang</span>, <span class="attribute">@xml:base</span>, <span class="attribute">@xml:space</span>)  (<a class="link_odd" title="provides rendering attributes common to all elements in the TEI encoding scheme." href="ref-att.global.rendition.html">att.global.rendition</a> (<span class="attribute">@rend</span>, <span class="attribute">@style</span>, <span class="attribute">@rendition</span>))  (<a class="link_odd" title="provides a set of attributes for hypertextual linking." href="ref-att.global.linking.html">att.global.linking</a> (<span class="attribute">@corresp</span>, <span class="attribute">@synch</span>, <span class="attribute">@sameAs</span>, <span class="attribute">@copyOf</span>, <span class="attribute">@next</span>, <span class="attribute">@prev</span>, <span class="attribute">@exclude</span>, <span class="attribute">@select</span>))  (<a class="link_odd" title="provides additional global attributes for associating specific analyses or interpretations with appropriate portions of a text." href="ref-att.global.analytic.html">att.global.analytic</a> (<span class="attribute">@ana</span>))  (<a class="link_odd" title="provides an attribute used to express correspondence between an element containing transcribed text and all or part of an image representing that text." href="ref-att.global.facs.html">att.global.facs</a> (<span class="attribute">@facs</span>))  (<a class="link_odd" title="supplies the @change attribute, allowing its member elements to specify one or more states or revision campaigns with which they are associated." href="ref-att.global.change.html">att.global.change</a> (<span class="attribute">@change</span>))  (<a class="link_odd" title="provides attributes indicating the agent responsible for some aspect of the text, the markup or something asserted by the markup, and the degree of certainty associated with it." href="ref-att.global.responsibility.html">att.global.responsibility</a> (<span class="attribute">@cert</span>, <span class="attribute">@resp</span>))  (<a class="link_odd" title="provides an attribute used by elements to point to an external source." href="ref-att.global.source.html">att.global.source</a> (<span class="attribute">@source</span>)) <table class="attList"><tr><td class="odd_label">behaviour<span class="bookmarklink"><a class="bookmarklink" id="tei_att.behaviour" href="#tei_att.behaviour" title="link to this attribute "><span class="invisible"> behaviour</span><span class="pilcrow">¶</span></a></span></td><td class="odd_value">names the process or function which this processing model uses in order to produce output.
Suggested values include: 1] alternate; 2] anchor; 3] block; 4] body; 5] break; 6] cell; 7] cit; 8] document; 9] figure; 10] glyph; 11] graphic; 12] heading; 13] index; 14] inline; 15] link; 16] list; 17] listItem; 18] metadata; 19] note; 20] omit; 21] paragraph; 22] row; 23] section; 24] table; 25] text; 26] title<table class="attDef"><tr><td class="odd_label"><span class="label" lang="en">Status</span> </td><td class="odd_value"><span lang="en"><span class="required">Required</span></span></td></tr><tr><td class="odd_label"><span lang="en" class="label">Datatype</span> </td><td class="odd_value"><a class="link_element" href="ref-teidata.enumerated.html">teidata.enumerated</a></td></tr><tr><td class="odd_label"><span class="label" lang="en">Suggested values include:</span></td><td class="odd_value"><dl class="valList"><dt class="odd_label">alternate</dt><dd class="odd_value">(default, alternate) support display of alternative visualisations, for example by displaying the preferred content, by displaying both in parallel, or by toggling between the two.</dd><dt class="odd_label">anchor</dt><dd class="odd_value">(id) create an identifiable anchor point in the output.</dd><dt class="odd_label">block</dt><dd class="odd_value">(content) create a block structure</dd><dt class="odd_label">body</dt><dd class="odd_value">(content) create the body of a document.</dd><dt class="odd_label">break</dt><dd class="odd_value">(type, label) create a line, column, or page break according to the value of <span class="ident">type</span></dd><dt class="odd_label">cell</dt><dd class="odd_value">(content) create a table cell</dd><dt class="odd_label">cit</dt><dd class="odd_value">(content, source) show the content, with an indication of the source</dd><dt class="odd_label">document</dt><dd class="odd_value">(content) start a new output document</dd><dt class="odd_label">figure</dt><dd class="odd_value">(title) make a figure with the <span class="term">title</span> as caption</dd><dt class="odd_label">glyph</dt><dd class="odd_value">(uri) show a character by looking up reference to a chardesc at the given URI</dd><dt class="odd_label">graphic</dt><dd class="odd_value">(url, width, height, scale, title) if <span class="ident">url</span> is present, uses it to display graphic, else display a placeholder image.</dd><dt class="odd_label">heading</dt><dd class="odd_value">(content, level) creates a heading. </dd><dt class="odd_label">index</dt><dd class="odd_value">(type) generate list according to <span class="ident">type</span>.</dd><dt class="odd_label">inline</dt><dd class="odd_value">(content, label) creates inline element out of <span class="ident">content</span> </dd><dt class="odd_label">link</dt><dd class="odd_value">(content, uri) create hyperlink</dd><dt class="odd_label">list</dt><dd class="odd_value">(content) create a list. </dd><dt class="odd_label">listItem</dt><dd class="odd_value">(content) create a list item.</dd><dt class="odd_label">metadata</dt><dd class="odd_value">(content) create metadata section</dd><dt class="odd_label">note</dt><dd class="odd_value">(content, place, label) create a note, often out of line, depending on the value of <span class="ident">place</span>; could be margin, footnote, endnote, inline</dd><dt class="odd_label">omit</dt><dd class="odd_value">do nothing, do not process children</dd><dt class="odd_label">paragraph</dt><dd class="odd_value">(content) create a paragraph out of <span class="ident">content</span>.</dd><dt class="odd_label">row</dt><dd class="odd_value">(content) create a table row</dd><dt class="odd_label">section</dt><dd class="odd_value">(content) create a new section of the output document</dd><dt class="odd_label">table</dt><dd class="odd_value">(content) create a table</dd><dt class="odd_label">text</dt><dd class="odd_value">(content) create literal text</dd><dt class="odd_label">title</dt><dd class="odd_value">(content) create document title</dd></dl></td></tr></table></td></tr><tr><td class="odd_label">predicate<span class="bookmarklink"><a class="bookmarklink" id="tei_att.predicate" href="#tei_att.predicate" title="link to this attribute "><span class="invisible"> predicate</span><span class="pilcrow">¶</span></a></span></td><td class="odd_value">the condition under which this model applies, given as an XPath predicate expression.<table class="attDef"><tr><td class="odd_label"><span class="label" lang="en">Status</span> </td><td class="odd_value"><span lang="en">Optional</span></td></tr><tr><td class="odd_label"><span lang="en" class="label">Datatype</span> </td><td class="odd_value"><a class="link_element" href="ref-teidata.xpath.html">teidata.xpath</a></td></tr></table></td></tr><tr><td class="odd_label">useSourceRendition<span class="bookmarklink"><a class="bookmarklink" id="tei_att.useSourceRendition" href="#tei_att.useSourceRendition" title="link to this attribute "><span class="invisible"> useSourceRendition</span><span class="pilcrow">¶</span></a></span></td><td class="odd_value">whether to obey any rendition attribute which is present.<table class="attDef"><tr><td class="odd_label"><span class="label" lang="en">Status</span> </td><td class="odd_value"><span lang="en">Optional</span></td></tr><tr><td class="odd_label"><span lang="en" class="label">Datatype</span> </td><td class="odd_value"><a class="link_element" href="ref-teidata.truthValue.html">teidata.truthValue</a></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Note</span></td><td class="wovenodd-col2"><!-- --><p>If the <span class="att">useSourceRendition</span> attribute is not specified, or has the value <span class="val">false</span>, any renditional information specified in the source document should be ignored.</p></td></tr></table></td></tr><tr><td class="odd_label">output<span class="bookmarklink"><a class="bookmarklink" id="tei_att.output" href="#tei_att.output" title="link to this attribute "><span class="invisible"> output</span><span class="pilcrow">¶</span></a></span></td><td class="odd_value">the intended output.
Sample values include: 1] web; 2] print; 3] plain<table class="attDef"><tr><td class="odd_label"><span class="label" lang="en">Status</span> </td><td class="odd_value"><span lang="en">Optional</span></td></tr><tr><td class="odd_label"><span lang="en" class="label">Datatype</span> </td><td class="odd_value"><a class="link_element" href="ref-teidata.enumerated.html">teidata.enumerated</a></td></tr><tr><td class="odd_label"><span class="label" lang="en">Sample values include:</span></td><td class="odd_value"><dl class="valList"><dt class="odd_label">web</dt><dd class="odd_value">the output is intended for presentation in a web format</dd><dt class="odd_label">print</dt><dd class="odd_value">the output is intended for presentation in a print format</dd><dt class="odd_label">plain</dt><dd class="odd_value">the output is intended for presentation in a plain text format</dd></dl></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Note</span></td><td class="wovenodd-col2"><!-- --><p>If the <span class="att">output</span> attribute is not specified, this model is assumed to apply for all forms of output.</p></td></tr></table></td></tr><tr><td class="odd_label">cssClass<span class="bookmarklink"><a class="bookmarklink" id="tei_att.cssClass" href="#tei_att.cssClass" title="link to this attribute "><span class="invisible"> cssClass</span><span class="pilcrow">¶</span></a></span></td><td class="odd_value">the name of a CSS class which should be associated with this element<table class="attDef"><tr><td class="odd_label"><span class="label" lang="en">Status</span> </td><td class="odd_value"><span lang="en">Optional</span></td></tr><tr><td class="odd_label"><span lang="en" class="label">Datatype</span> </td><td class="odd_value"> 1–∞ <span lang="en">occurrences of</span> <a class="link_element" href="ref-teidata.name.html">teidata.name</a> <span lang="en">separated by whitespace</span></td></tr></table></td></tr></table></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Contained by</span></td><td class="wovenodd-col2"><div class="parent"><div class="specChildren"><div class="specChild"><span class="specChildModule">tagdocs: </span><span class="specChildElements"><a class="link_odd_elementSpec" title="(element specification) documents the structure, content, and purpose of a single element type." href="ref-elementSpec.html">elementSpec</a> <a class="link_odd_elementSpec" title="any grouping of &lt;model&gt; or &lt;modelSequence&gt; elements with a common output method" href="ref-modelGrp.html">modelGrp</a> <a class="link_odd_elementSpec" title="any sequence of model or &lt;modelSequence&gt; elements which is to be processed as a single set of actions" href="ref-modelSequence.html">modelSequence</a></span></div></div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">May contain</span></td><td class="wovenodd-col2"><div class="specChildren"><div class="specChild"><span class="specChildModule">core: </span><span class="specChildElements"><a class="link_odd_elementSpec" title="(description) contains a brief description of the object documented by its parent element, typically a documentation element or an entity." href="ref-desc.html">desc</a> <a class="link_odd_elementSpec" title="identifies a phrase or word used to provide a gloss or definition for some other word or phrase." href="ref-gloss.html">gloss</a></span></div><div class="specChild"><span class="specChildModule">tagdocs: </span><span class="specChildElements"><a class="link_odd_elementSpec" title="(alternate identifier) supplies the recommended XML name for an element, class, attribute, etc. in some language." href="ref-altIdent.html">altIdent</a> <a class="link_odd_elementSpec" title="(equivalent) specifies a component which is considered equivalent to the parent element, either by co-reference, or by external link." href="ref-equiv.html">equiv</a> <a class="link_odd_elementSpec" title="describes the rendering or appearance intended for all occurrences of an element in a specified context for a specified type of output." href="ref-outputRendition.html">outputRendition</a> <a class="link_odd_elementSpec" title="provides a parameter for a model behaviour by supplying its name and an XPath expression identifying the location of its content." href="ref-param.html">param</a></span></div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Note</span></td><td class="wovenodd-col2"><!-- --><p>The intended output to be generated for a particular behaviour of a processing model may be documented in one or all of the three following ways. Firstly, the <span class="att">cssClass</span> attribute may be used to specify the name of a CSS style in some associated CSS stylesheet which is to be applied to each occurrence of a specified element found (in a given context, for a specified output). Secondly, the attribute <span class="att">useSourceRendition</span> may be used to indicate that the default rendition for occurrences of this element, as defined by a <a class="gi" title="supplies information about the rendition or appearance of one or more elements in the source text." href="ref-rendition.html">rendition</a> element in the document header, should be applied. Thirdly, the styling to be applied may be specified explicitly as content of a child <a class="gi" title="describes the rendering or appearance intended for all occurrences of an element in a specified context for a specified type of output." href="ref-outputRendition.html">outputRendition</a> element. When more than one of these options is used, they are understood to be combined in accordance with the rules for multiple declaration of the styling language used.</p></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Example</span></td><td class="wovenodd-col2"><div id="index-egXML-d52e146383" class="pre egXML_valid"><span class="element">&lt;model <span class="attribute">behaviour</span>="<span class="attributevalue">inline</span>"/&gt;</span><div style="float: right;"><a href="examples-model.html">Show all</a> </div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Example</span></td><td class="wovenodd-col2"><div id="index-egXML-d52e146386" class="pre egXML_valid"><span class="element">&lt;elementSpec <span class="attribute">mode</span>="<span class="attributevalue">change</span>" <span class="attribute">ident</span>="<span class="attributevalue">quote</span>"&gt;</span><br /> <span class="element">&lt;model <span class="attribute">predicate</span>="<span class="attributevalue">ancestor::p</span>"<br />  <span class="attribute">behaviour</span>="<span class="attributevalue">inline</span>"&gt;</span><br />  <span class="element">&lt;desc <span class="attribute">versionDate</span>="<span class="attributevalue">2015-08-21</span>"<br />   <span class="attribute">xml:lang</span>="<span class="attributevalue">en</span>"&gt;</span>If it's inside a paragraph then it's<br />       inline<span class="element">&lt;/desc&gt;</span><br /> <span class="element">&lt;/model&gt;</span><br /> <span class="element">&lt;model <span class="attribute">predicate</span>="<span class="attributevalue">not(ancestor::p)</span>"<br />  <span class="attribute">behaviour</span>="<span class="attributevalue">block</span>"&gt;</span><br />  <span class="element">&lt;desc <span class="attribute">versionDate</span>="<span class="attributevalue">2015-08-21</span>"<br />   <span class="attribute">xml:lang</span>="<span class="attributevalue">en</span>"&gt;</span>If it's not inside a paragraph then it is<br />       block level<span class="element">&lt;/desc&gt;</span><br /> <span class="element">&lt;/model&gt;</span><br /><span class="element">&lt;/elementSpec&gt;</span><div style="float: right;"><a href="examples-model.html">Show all</a> </div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Example</span></td><td class="wovenodd-col2"><div id="index-egXML-d52e146395" class="pre egXML_valid"><span class="element">&lt;model <span class="attribute">predicate</span>="<span class="attributevalue">parent::person</span>"<br /> <span class="attribute">behaviour</span>="<span class="attributevalue">inline</span>"&gt;</span><br /> <span class="element">&lt;desc <span class="attribute">versionDate</span>="<span class="attributevalue">2015-08-21</span>"<br />  <span class="attribute">xml:lang</span>="<span class="attributevalue">en</span>"&gt;</span>If it is a child of a person element, treat as<br />     inline<span class="element">&lt;/desc&gt;</span><br /><span class="element">&lt;/model&gt;</span><div style="float: right;"><a href="examples-model.html">Show all</a> </div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Example</span></td><td class="wovenodd-col2"><div id="index-egXML-d52e146400" class="pre egXML_valid"><span class="element">&lt;model <span class="attribute">behaviour</span>="<span class="attributevalue">inline</span>"&gt;</span><br /> <span class="element">&lt;outputRendition&gt;</span>font-weight:bold<span class="element">&lt;/outputRendition&gt;</span><br /><span class="element">&lt;/model&gt;</span><div style="float: right;"><a href="examples-model.html">Show all</a> </div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Example</span></td><td class="wovenodd-col2"><div id="index-egXML-d52e146405" class="pre egXML_valid"><span class="element">&lt;model <span class="attribute">behaviour</span>="<span class="attributevalue">inline</span>" <span class="attribute">output</span>="<span class="attributevalue">print</span>"/&gt;</span><div style="float: right;"><a href="examples-model.html">Show all</a> </div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Example</span></td><td class="wovenodd-col2"><div id="index-egXML-d52e146408" class="pre egXML_valid"><span class="element">&lt;model <span class="attribute">predicate</span>="<span class="attributevalue">ancestor::p</span>"<br /> <span class="attribute">behaviour</span>="<span class="attributevalue">inline</span>"&gt;</span><br /> <span class="element">&lt;param <span class="attribute">name</span>="<span class="attributevalue">content</span>" <span class="attribute">value</span>="<span class="attributevalue">@n</span>"/&gt;</span><br /><span class="element">&lt;/model&gt;</span><div style="float: right;"><a href="examples-model.html">Show all</a> </div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Example</span></td><td class="wovenodd-col2"><div id="index-egXML-d52e146412" class="pre egXML_valid"><span class="element">&lt;elementSpec <span class="attribute">mode</span>="<span class="attributevalue">change</span>" <span class="attribute">ident</span>="<span class="attributevalue">date</span>"&gt;</span><br /> <span class="element">&lt;model <span class="attribute">output</span>="<span class="attributevalue">print</span>" <span class="attribute">predicate</span>="<span class="attributevalue">text()</span>"<br />  <span class="attribute">behaviour</span>="<span class="attributevalue">inline</span>"/&gt;</span><br /> <span class="element">&lt;model <span class="attribute">output</span>="<span class="attributevalue">print</span>"<br />  <span class="attribute">predicate</span>="<span class="attributevalue">@when and not(text())</span>" <span class="attribute">behaviour</span>="<span class="attributevalue">inline</span>"&gt;</span><br />  <span class="element">&lt;param <span class="attribute">name</span>="<span class="attributevalue">content</span>" <span class="attribute">value</span>="<span class="attributevalue">@when</span>"/&gt;</span><br /> <span class="element">&lt;/model&gt;</span><br /> <span class="element">&lt;model <span class="attribute">predicate</span>="<span class="attributevalue">@when</span>" <span class="attribute">output</span>="<span class="attributevalue">web</span>"<br />  <span class="attribute">behaviour</span>="<span class="attributevalue">alternate</span>"&gt;</span><br />  <span class="element">&lt;param <span class="attribute">name</span>="<span class="attributevalue">alternate</span>" <span class="attribute">value</span>="<span class="attributevalue">@when</span>"/&gt;</span><br /> <span class="element">&lt;/model&gt;</span><br /><span class="element">&lt;/elementSpec&gt;</span><div style="float: right;"><a href="examples-model.html">Show all</a> </div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Example</span></td><td class="wovenodd-col2"><div id="index-egXML-d52e146421" class="pre egXML_valid"><span class="element">&lt;elementSpec <span class="attribute">mode</span>="<span class="attributevalue">change</span>" <span class="attribute">ident</span>="<span class="attributevalue">choice</span>"&gt;</span><br /> <span class="element">&lt;model <span class="attribute">predicate</span>="<span class="attributevalue">sic and corr</span>"<br />  <span class="attribute">behaviour</span>="<span class="attributevalue">alternate</span>"&gt;</span><br />  <span class="element">&lt;param <span class="attribute">name</span>="<span class="attributevalue">default</span>" <span class="attribute">value</span>="<span class="attributevalue">corr</span>"/&gt;</span><br />  <span class="element">&lt;param <span class="attribute">name</span>="<span class="attributevalue">alternate</span>" <span class="attribute">value</span>="<span class="attributevalue">sic</span>"/&gt;</span><br /> <span class="element">&lt;/model&gt;</span><br /> <span class="element">&lt;model <span class="attribute">predicate</span>="<span class="attributevalue">abbr and expan</span>"<br />  <span class="attribute">behaviour</span>="<span class="attributevalue">alternate</span>"&gt;</span><br />  <span class="element">&lt;param <span class="attribute">name</span>="<span class="attributevalue">default</span>" <span class="attribute">value</span>="<span class="attributevalue">expan</span>"/&gt;</span><br />  <span class="element">&lt;param <span class="attribute">name</span>="<span class="attributevalue">alternate</span>" <span class="attribute">value</span>="<span class="attributevalue">abbr</span>"/&gt;</span><br /> <span class="element">&lt;/model&gt;</span><br /> <span class="element">&lt;model <span class="attribute">predicate</span>="<span class="attributevalue">orig and reg</span>"<br />  <span class="attribute">behaviour</span>="<span class="attributevalue">alternate</span>"&gt;</span><br />  <span class="element">&lt;param <span class="attribute">name</span>="<span class="attributevalue">default</span>" <span class="attribute">value</span>="<span class="attributevalue">reg</span>"/&gt;</span><br />  <span class="element">&lt;param <span class="attribute">name</span>="<span class="attributevalue">alternate</span>" <span class="attribute">value</span>="<span class="attributevalue">orig</span>"/&gt;</span><br /> <span class="element">&lt;/model&gt;</span><br /><span class="element">&lt;/elementSpec&gt;</span><div style="float: right;"><a href="examples-model.html">Show all</a> </div></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Schematron</span></td><td class="wovenodd-col2">It is ambigous to have 2 <a class="gi" title="describes the processing intended for a specified element." href="ref-model.html">model</a>s that have both the same <span class="att">output</span> and have no <span class="att">predicate</span> (and thus select the same set of nodes).<div xml:space="preserve" class="pre"><br /><span class="element">&lt;sch:rule <span class="attribute">context</span>="<span class="attributevalue">tei:model[ not( parent::tei:modelSequence ) ][ not( @predicate ) ]</span>"&gt;</span><br /><span class="element">&lt;sch:let <span class="attribute">name</span>="<span class="attributevalue">output</span>"<br /> <span class="attribute">value</span>="<span class="attributevalue">normalize-space( @output )</span>"/&gt;</span><br /><span class="element">&lt;sch:report <span class="attribute">test</span>="<span class="attributevalue">following-sibling::tei:model [ not( @predicate )] [ normalize-space( 
 @output ) eq $output ]</span>"&gt;</span> There are 2 (or more) 'model' elements in this '<span class="element">&lt;sch:value-of <span class="attribute">select</span>="<span class="attributevalue">local-name(..)</span>"/&gt;</span>'<br />   that have no predicate, but are targeted to the same output<br />   ("<span class="element">&lt;sch:value-of <span class="attribute">select</span>="<span class="attributevalue">( $output, parent::modelGrp/@output, 'all')[1]</span>"/&gt;</span>")<span class="element">&lt;/sch:report&gt;</span><br /><span class="element">&lt;/sch:rule&gt;</span></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Schematron</span></td><td class="wovenodd-col2">It is ambigous to have 2 <a class="gi" title="describes the processing intended for a specified element." href="ref-model.html">model</a>s that have both the same <span class="att">output</span> and the same <span class="att">predicate</span> (and thus select the same set of nodes).<div xml:space="preserve" class="pre"><br /><span class="element">&lt;sch:rule <span class="attribute">context</span>="<span class="attributevalue">tei:model[ not( parent::tei:modelSequence ) ][ @predicate ]</span>"&gt;</span><br /><span class="element">&lt;sch:let <span class="attribute">name</span>="<span class="attributevalue">predicate</span>"<br /> <span class="attribute">value</span>="<span class="attributevalue">normalize-space( @predicate )</span>"/&gt;</span><br /><span class="element">&lt;sch:let <span class="attribute">name</span>="<span class="attributevalue">output</span>"<br /> <span class="attribute">value</span>="<span class="attributevalue">normalize-space( @output )</span>"/&gt;</span><br /><span class="element">&lt;sch:report <span class="attribute">test</span>="<span class="attributevalue">following-sibling::tei:model [ normalize-space( @predicate ) eq $predicate 
 ] [ normalize-space( @output ) eq $output ]</span>"&gt;</span> There are 2 (or more) 'model' elements in this<br />   '<span class="element">&lt;sch:value-of <span class="attribute">select</span>="<span class="attributevalue">local-name(..)</span>"/&gt;</span>' that have<br />   the same predicate, and are targeted to the same output<br />   ("<span class="element">&lt;sch:value-of <span class="attribute">select</span>="<span class="attributevalue">( $output, parent::modelGrp/@output, 'all')[1]</span>"/&gt;</span>")<span class="element">&lt;/sch:report&gt;</span><br /><span class="element">&lt;/sch:rule&gt;</span></div></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Content model</span></td><td class="wovenodd-col2"><pre class="eg"><span class="element">&lt;content&gt;</span><br /> <span class="element">&lt;sequence&gt;</span><br />  <span class="element">&lt;alternate <span class="attribute">minOccurs</span>="<span class="attributevalue">0</span>"<br />   <span class="attribute">maxOccurs</span>="<span class="attributevalue">unbounded</span>"&gt;</span><br />   <span class="element">&lt;classRef <span class="attribute">key</span>="<a class="link_odd" href="ref-model.glossLike.html">model.glossLike</a>"/&gt;</span><br />   <span class="element">&lt;classRef <span class="attribute">key</span>="<a class="link_odd" href="ref-model.descLike.html">model.descLike</a>"/&gt;</span><br />  <span class="element">&lt;/alternate&gt;</span><br />  <span class="element">&lt;elementRef <span class="attribute">key</span>="<a class="link_odd" href="ref-param.html">param</a>" <span class="attribute">minOccurs</span>="<span class="attributevalue">0</span>"<br />   <span class="attribute">maxOccurs</span>="<span class="attributevalue">unbounded</span>"/&gt;</span><br />  <span class="element">&lt;elementRef <span class="attribute">key</span>="<a class="link_odd" href="ref-outputRendition.html">outputRendition</a>"<br />   <span class="attribute">minOccurs</span>="<span class="attributevalue">0</span>" <span class="attribute">maxOccurs</span>="<span class="attributevalue">unbounded</span>"/&gt;</span><br /> <span class="element">&lt;/sequence&gt;</span><br /><span class="element">&lt;/content&gt;</span></pre></td></tr><tr><td class="wovenodd-col1"><span class="label" lang="en">Schema Declaration</span></td><td class="wovenodd-col2"><div class="displayRelax"><button class="displayRelaxButton"><span class="RNG_Compact">XML syntax</span><span class="RNG_XML">Compact syntax</span></button><pre class="RNG_XML"><span class="element">&lt;rng:element <span class="attribute">name</span>="<span class="attributevalue">model</span>"&gt;</span><br /> <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">att.global.attributes</span>"/&gt;</span><br /> <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">att.global.rendition.attributes</span>"/&gt;</span><br /> <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">att.global.linking.attributes</span>"/&gt;</span><br /> <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">att.global.analytic.attributes</span>"/&gt;</span><br /> <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">att.global.facs.attributes</span>"/&gt;</span><br /> <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">att.global.change.attributes</span>"/&gt;</span><br /> <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">att.global.responsibility.attributes</span>"/&gt;</span><br /> <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">att.global.source.attributes</span>"/&gt;</span><br /> <span class="element">&lt;rng:attribute <span class="attribute">name</span>="<span class="attributevalue">behaviour</span>"&gt;</span><br />  <span class="element">&lt;rng:choice&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>alternate<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>anchor<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>block<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>body<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>break<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>cell<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>cit<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>document<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>figure<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>glyph<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>graphic<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>heading<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>index<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>inline<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>link<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>list<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>listItem<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>metadata<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>note<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>omit<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>paragraph<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>row<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>section<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>table<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>text<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:value&gt;</span>title<span class="element">&lt;/rng:value&gt;</span><br />   <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">teidata.enumerated</span>"/&gt;</span><br />  <span class="element">&lt;/rng:choice&gt;</span><br /> <span class="element">&lt;/rng:attribute&gt;</span><br /> <span class="element">&lt;rng:optional&gt;</span><br />  <span class="element">&lt;rng:attribute <span class="attribute">name</span>="<span class="attributevalue">predicate</span>"&gt;</span><br />   <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">teidata.xpath</span>"/&gt;</span><br />  <span class="element">&lt;/rng:attribute&gt;</span><br /> <span class="element">&lt;/rng:optional&gt;</span><br /> <span class="element">&lt;rng:optional&gt;</span><br />  <span class="element">&lt;rng:attribute <span class="attribute">name</span>="<span class="attributevalue">useSourceRendition</span>"&gt;</span><br />   <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">teidata.truthValue</span>"/&gt;</span><br />  <span class="element">&lt;/rng:attribute&gt;</span><br /> <span class="element">&lt;/rng:optional&gt;</span><br /> <span class="element">&lt;rng:optional&gt;</span><br />  <span class="element">&lt;rng:attribute <span class="attribute">name</span>="<span class="attributevalue">output</span>"&gt;</span><br />   <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">teidata.enumerated</span>"/&gt;</span><br />  <span class="element">&lt;/rng:attribute&gt;</span><br /> <span class="element">&lt;/rng:optional&gt;</span><br /> <span class="element">&lt;rng:optional&gt;</span><br />  <span class="element">&lt;rng:attribute <span class="attribute">name</span>="<span class="attributevalue">cssClass</span>"&gt;</span><br />   <span class="element">&lt;rng:list&gt;</span><br />    <span class="element">&lt;rng:oneOrMore&gt;</span><br />     <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">teidata.name</span>"/&gt;</span><br />    <span class="element">&lt;/rng:oneOrMore&gt;</span><br />   <span class="element">&lt;/rng:list&gt;</span><br />  <span class="element">&lt;/rng:attribute&gt;</span><br /> <span class="element">&lt;/rng:optional&gt;</span><br /> <span class="element">&lt;rng:group&gt;</span><br />  <span class="element">&lt;rng:zeroOrMore&gt;</span><br />   <span class="element">&lt;rng:choice&gt;</span><br />    <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">model.glossLike</span>"/&gt;</span><br />    <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">model.descLike</span>"/&gt;</span><br />   <span class="element">&lt;/rng:choice&gt;</span><br />  <span class="element">&lt;/rng:zeroOrMore&gt;</span><br />  <span class="element">&lt;rng:zeroOrMore&gt;</span><br />   <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">param</span>"/&gt;</span><br />  <span class="element">&lt;/rng:zeroOrMore&gt;</span><br />  <span class="element">&lt;rng:zeroOrMore&gt;</span><br />   <span class="element">&lt;rng:ref <span class="attribute">name</span>="<span class="attributevalue">outputRendition</span>"/&gt;</span><br />  <span class="element">&lt;/rng:zeroOrMore&gt;</span><br /> <span class="element">&lt;/rng:group&gt;</span><br /><span class="element">&lt;/rng:element&gt;</span></pre><pre class="RNG_Compact">
<span class="rnc_keyword">element</span> <span class="rnc_nc">model</span>
{
   <a class="link_odd" title="provides attributes common to all elements in the TEI encoding scheme." href="ref-att.global.html">att.global.attributes</a>,
   <a class="link_odd" title="provides rendering attributes common to all elements in the TEI encoding scheme." href="ref-att.global.rendition.html">att.global.rendition.attributes</a>,
   <a class="link_odd" title="provides a set of attributes for hypertextual linking." href="ref-att.global.linking.html">att.global.linking.attributes</a>,
   <a class="link_odd" title="provides additional global attributes for associating specific analyses or interpretations with appropriate portions of a text." href="ref-att.global.analytic.html">att.global.analytic.attributes</a>,
   <a class="link_odd" title="provides an attribute used to express correspondence between an element containing transcribed text and all or part of an image representing that text." href="ref-att.global.facs.html">att.global.facs.attributes</a>,
   <a class="link_odd" title="supplies the @change attribute, allowing its member elements to specify one or more states or revision campaigns with which they are associated." href="ref-att.global.change.html">att.global.change.attributes</a>,
   <a class="link_odd" title="provides attributes indicating the agent responsible for some aspect of the text, the markup or something asserted by the markup, and the degree of certainty associated with it." href="ref-att.global.responsibility.html">att.global.responsibility.attributes</a>,
   <a class="link_odd" title="provides an attribute used by elements to point to an external source." href="ref-att.global.source.html">att.global.source.attributes</a>,
   <span class="rnc_keyword">attribute</span> <span class="rnc_nc">behaviour</span>
   {
      "alternate"
    | "anchor"
    | "block"
    | "body"
    | "break"
    | "cell"
    | "cit"
    | "document"
    | "figure"
    | "glyph"
    | "graphic"
    | "heading"
    | "index"
    | "inline"
    | "link"
    | "list"
    | "listItem"
    | "metadata"
    | "note"
    | "omit"
    | "paragraph"
    | "row"
    | "section"
    | "table"
    | "text"
    | "title"
    | <a class="link_odd" title="" href="ref-teidata.enumerated.html">teidata.enumerated</a>
   },
   attribute predicate { <a class="link_odd" title="" href="ref-teidata.xpath.html">teidata.xpath</a> }?,
   attribute useSourceRendition { <a class="link_odd" title="" href="ref-teidata.truthValue.html">teidata.truthValue</a> }?,
   attribute output { <a class="link_odd" title="" href="ref-teidata.enumerated.html">teidata.enumerated</a> }?,
   attribute cssClass { list { <a class="link_odd" title="" href="ref-teidata.name.html">teidata.name</a>+ } }?,
   ( ( <a class="link_odd" title="groups elements which provide an alternative name, explanation, or description for any markup construct." href="ref-model.glossLike.html">model.glossLike</a> | <a class="link_odd" title="groups elements which contain a description of their function." href="ref-model.descLike.html">model.descLike</a> )*, <a class="link_odd" title="provides a parameter for a model behaviour by supplying its name and an XPath expression identifying the location of its content." href="ref-param.html">param</a>*, <a class="link_odd" title="describes the rendering or appearance intended for all occurrences of an element in a specified context for a specified type of output." href="ref-outputRendition.html">outputRendition</a>* )
}</pre></div></td></tr></table></div></div><div class="stdfooter autogenerated"><p>
    [<a href="../../en/html/ref-model.html">English</a>]
    [<a href="../../de/html/ref-model.html">Deutsch</a>]
    [<a href="../../es/html/ref-model.html">Español</a>]
    [<a href="../../it/html/ref-model.html">Italiano</a>]
    [<a href="../../fr/html/ref-model.html">Français</a>]
    [<a href="../../ja/html/ref-model.html">日本語</a>]
    [<a href="../../ko/html/ref-model.html">한국어</a>]
    [<a href="../../zh-TW/html/ref-model.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