<model> describes the processing intended for a specified element. [22.5.5.1 The TEI processing model ]モジュール tagdocs — Documentation Elements 属性 att.global (@xml:id , @n , @xml:lang , @xml:base , @xml:space ) (att.global.rendition (@rend , @style , @rendition )) (att.global.linking (@corresp , @synch , @sameAs , @copyOf , @next , @prev , @exclude , @select )) (att.global.analytic (@ana )) (att.global.facs (@facs )) (att.global.change (@change )) (att.global.responsibility (@cert , @resp )) behaviour behaviour ¶ names the process or function which this processing model uses in order to produce output.
提案する値は以下の通り: 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状態 必須 データ型 teidata.enumerated 提案する値は以下の通り: alternate (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. anchor (id) create an identifiable anchor point in the output block (content) create a block structure body (content) create the body of a document. break (type,label) create a line, column, or page break according to the value of type cell (content) create a table cell cit (content,source) show the content, with an indication of the source document (content) start a new output document figure (title) make a figure with the title as caption glyph (uri) show a character by looking up reference to a chardesc at the given URI graphic (url,width,height,scale,title) if url is present, uses it to display graphic, else display a placeholder image. heading (content,level) creates a heading. index (type) generate list according to type inline (content,label) creates inline element out of content link (content,uri) create hyperlink list (content) create a list listItem (content) create a list item metadata (content) create metadata section note (content,place,label) create a note, often out of line, depending on the value of place ; could be margin, footnote, endnote, inline omit do nothing, do not process children paragraph (content) create a paragraph out of content . row (content) create a table row section (content) create a new section of the output document table (content) create a table text (content) create literal text title (content) create document title
predicate predicate ¶ the condition under which this model applies, given as an XPath predicate expression. useSourceRendition useSourceRendition ¶ whether to obey any rendition attribute which is present. output output ¶ the intended output.
例としての値は以下の通り: 1] web; 2] print; 3] plain状態 任意 データ型 teidata.enumerated 例としての値は以下の通り: web the output is intended for presentation in a web format print the output is intended for presentation in a print format plain the output is intended for presentation in a plain text format
cssClass cssClass ¶ the name of a CSS class which should be associated with this element
上位 下位 例 <model behaviour ="inline "/> 例 <elementSpec mode ="change " ident ="quote "> <model predicate ="ancestor::p " behaviour ="inline "> <desc versionDate ="2015-08-21 " xml:lang ="en "> If it's inside a paragraph then it's
inline
</desc> </model> <model predicate ="not(ancestor::p) " behaviour ="block "> <desc versionDate ="2015-08-21 " xml:lang ="en "> If it's not inside a paragraph then it is
block level
</desc> </model> </elementSpec> 例 <model predicate ="parent::person " behaviour ="inline "> <desc versionDate ="2015-08-21 " xml:lang ="en "> If it is a child of a person element, treat as
inline
</desc> </model> 例 <model behaviour ="inline "> <outputRendition> font-weight:bold
</outputRendition> </model> 例 <model behaviour ="inline " output ="print "/> 例 <model predicate ="ancestor::p " behaviour ="inline "> <param name ="content " value ="@n "/> </model> 例 <elementSpec mode ="change " ident ="date "> <model output ="print " predicate ="text() " behaviour ="inline "/> <model output ="print " predicate ="@when and not(text()) " behaviour ="inline "> <param name ="content " value ="@when "/> </model> <model predicate ="@when " output ="web " behaviour ="alternate "> <param name ="alternate " value ="@when "/> </model> </elementSpec> 例 <elementSpec mode ="change " ident ="choice "> <model predicate ="sic and corr " behaviour ="alternate "> <param name ="default " value ="corr "/> <param name ="alternate " value ="sic "/> </model> <model predicate ="abbr and expan " behaviour ="alternate "> <param name ="default " value ="expan "/> <param name ="alternate " value ="abbr "/> </model> <model predicate ="orig and reg " behaviour ="alternate "> <param name ="default " value ="reg "/> <param name ="alternate " value ="orig "/> </model> </elementSpec> Content model <content> <sequence> <alternate minOccurs ="0 " maxOccurs ="unbounded "> <classRef key ="model.glossLike "/> <classRef key ="model.descLike "/> </alternate> <elementRef key ="param " minOccurs ="0 " maxOccurs ="unbounded "/> <elementRef key ="outputRendition " minOccurs ="0 " maxOccurs ="unbounded "/> </sequence> </content> 宣言 XML表記 簡易表記 <rng:element name ="model "> <rng:ref name ="att.global.attributes "/> <rng:ref name ="att.global.rendition.attributes "/> <rng:ref name ="att.global.linking.attributes "/> <rng:ref name ="att.global.analytic.attributes "/> <rng:ref name ="att.global.facs.attributes "/> <rng:ref name ="att.global.change.attributes "/> <rng:ref name ="att.global.responsibility.attributes "/> <rng:attribute name ="behaviour "> <rng:choice> <rng:value> alternate</rng:value> <rng:value> anchor</rng:value> <rng:value> block</rng:value> <rng:value> body</rng:value> <rng:value> break</rng:value> <rng:value> cell</rng:value> <rng:value> cit</rng:value> <rng:value> document</rng:value> <rng:value> figure</rng:value> <rng:value> glyph</rng:value> <rng:value> graphic</rng:value> <rng:value> heading</rng:value> <rng:value> index</rng:value> <rng:value> inline</rng:value> <rng:value> link</rng:value> <rng:value> list</rng:value> <rng:value> listItem</rng:value> <rng:value> metadata</rng:value> <rng:value> note</rng:value> <rng:value> omit</rng:value> <rng:value> paragraph</rng:value> <rng:value> row</rng:value> <rng:value> section</rng:value> <rng:value> table</rng:value> <rng:value> text</rng:value> <rng:value> title</rng:value> <rng:ref name ="teidata.enumerated "/> </rng:choice> </rng:attribute> <rng:optional> <rng:attribute name ="predicate "> <rng:ref name ="teidata.xpath "/> </rng:attribute> </rng:optional> <rng:optional> <rng:attribute name ="useSourceRendition "> <rng:ref name ="teidata.truthValue "/> </rng:attribute> </rng:optional> <rng:optional> <rng:attribute name ="output "> <rng:ref name ="teidata.enumerated "/> </rng:attribute> </rng:optional> <rng:optional> <rng:attribute name ="cssClass "> <rng:list> <rng:oneOrMore> <rng:ref name ="teidata.name "/> </rng:oneOrMore> </rng:list> </rng:attribute> </rng:optional> <rng:group> <rng:zeroOrMore> <rng:choice> <rng:ref name ="model.glossLike "/> <rng:ref name ="model.descLike "/> </rng:choice> </rng:zeroOrMore> <rng:zeroOrMore> <rng:ref name ="param "/> </rng:zeroOrMore> <rng:zeroOrMore> <rng:ref name ="outputRendition "/> </rng:zeroOrMore> </rng:group> </rng:element>
element model
{
att.global.attributes ,
att.global.rendition.attributes ,
att.global.linking.attributes ,
att.global.analytic.attributes ,
att.global.facs.attributes ,
att.global.change.attributes ,
att.global.responsibility.attributes ,
attribute behaviour
{
"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"
| teidata.enumerated
},
attribute predicate { teidata.xpath }?,
attribute useSourceRendition { teidata.truthValue }?,
attribute output { teidata.enumerated }?,
attribute cssClass { list { teidata.name + } }?,
( ( model.glossLike | model.descLike )*, param *, outputRendition * )
}