<rendition>

<rendition> (rendition) 提供關於一個或多個元素預定呈現方式的資訊。 [2.3.4 The Tagging Declaration]
組件 header — The TEI Header
屬性
scope⚓︎ where CSS is used, provides a way of defining ‘pseudo-elements’, that is, styling rules applicable to specific sub-portions of an element.
狀態 非必備的
資料類型 teidata.enumerated
實例值包含:
first-line
styling applies to the first line of the target element
first-letter
styling applies to the first letter of the target element
before
styling should be applied immediately before the content of the target element
after
styling should be applied immediately after the content of the target element
selector⚓︎ contains a selector or series of selectors specifying the elements to which the contained style description applies, expressed in the language specified in the scheme attribute.
狀態 非必備的
資料類型 teidata.text
<rendition scheme="css"
 selector="text, front, back, body, div, p, ab">

display: block;
</rendition>
<rendition scheme="css"
 selector="*[rend*=italic]">
font-style: italic;
</rendition>
可包含在於
header: tagsDecl
可包含
例子
<tagsDecl>
 <rendition xml:id="r-centerscheme="css">text-align: center;</rendition>
 <rendition xml:id="r-smallscheme="css">font-size: small;</rendition>
 <rendition xml:id="r-largescheme="css">font-size: large;</rendition>
 <rendition xml:id="initcaps"
  scope="first-letterscheme="css">
font-size: xx-large</rendition>
</tagsDecl>
Content model
<content>
 <macroRef key="macro.limitedContent"/>
</content>
宣告
<rng:element name="rendition">
 <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:ref name="att.global.source.attributes"/>
 <rng:ref name="att.styleDef.attributes"/>
 <rng:optional>
  <rng:attribute name="scope">
   <rng:ref name="teidata.enumerated"/>
  </rng:attribute>
 </rng:optional>
 <rng:optional>
  <rng:attribute name="selector">
   <rng:ref name="teidata.text"/>
  </rng:attribute>
 </rng:optional>
 <rng:ref name="macro.limitedContent"/>
</rng:element>
element rendition
{
   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,
   att.global.source.attributes,
   att.styleDef.attributes,
   attribute scope { teidata.enumerated }?,
   attribute selector { teidata.text }?,
   macro.limitedContent
}