<mapping>

<mapping> (文字對應) 包含與父文字或字體在某方面有所關聯的一個或多個文字,在屬性type中加以說明。 [5.2 Markup Constructs for Representation of Characters and Glyphs]
組件 gaiji — Characters, Glyphs, and Writing Modes
屬性 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)) (att.global.source (@source)) att.typed (@type, @subtype)
可包含在於
gaiji: char glyph
可包含
gaiji: g
character data

Suggested values for the type attribute include exact for exact equivalences, uppercase for uppercase equivalences, lowercase for lowercase equivalences, and simplified for simplified characters. The g elements contained by this element can point to either another char or glyphelement or contain a character that is intended to be the target of this mapping.

例子
<mapping type="modern">r</mapping>
<mapping type="standard"></mapping>
Content model
<content>
 <macroRef key="macro.xtext"/>
</content>
宣告
<rng:element name="mapping">
 <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.typed.attributes"/>
 <rng:ref name="macro.xtext"/>
</rng:element>
element mapping
{
   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.typed.attributes,
   macro.xtext
}