<join>
<join> 標明文本中可能的不完整分割,指向構成此不完整分割的可能不連接元素。 16.7 Aggregation | |||||||||||||||||||||||
組件 | linking — 16 Linking, Segmentation, and Alignment | ||||||||||||||||||||||
除全域屬性以外 | att.pointing (@target, @evaluate) att.typed (@type, @subtype)
|
||||||||||||||||||||||
屬於 | |||||||||||||||||||||||
可包含 | |||||||||||||||||||||||
宣告 |
element join { att.global.attributes, att.pointing.attributes, att.typed.attributes, attribute targets { list { data.pointer, data.pointer, data.pointer* } }?, attribute result { data.name }?, attribute scope { "root" | "branches" }?, model.glossLike* } |
||||||||||||||||||||||
Schematron |
<sch:report test="@target and @targets">You may not supply both @target and @targets</sch:report> |
||||||||||||||||||||||
Schematron |
<sch:report test="not(@target) and not(@targets)">You must supply either @target or @targets</sch:report> |
||||||||||||||||||||||
Schematron |
<sch:assert test="contains(@target,' ')">You must supply at least two values for @target</sch:assert> |
||||||||||||||||||||||
例子 |
<sp>
<speaker>休</speaker> <p>怎麼樣了?<q> <l xml:id="zh-tw_frog_x1">呱、呱、呱</l> <l xml:id="zh-tw_frog_l2">有新來的青蛙</l> <l>...</l> </q> </p> </sp> <sp> <speaker>路易</speaker> <p> <q> <l xml:id="zh-tw_frog_l1">以前的池塘</l> <l>...</l> </q> </p> </sp> <sp> <speaker>迪威</speaker> <p> <q>... <l xml:id="zh-tw_frog_l3">有新的池塘</l> </q> </p> <join targets="#zh-tw_frog_l1 #zh-tw_frog_l2 #zh-tw_frog_l3" result="lg" scope="root"/> </sp> |
||||||||||||||||||||||
例子 |
<p>台灣譯為<list xml:id="zh-tw_LP1">
<item> <s>艾蜜莉的異想世界</s> </item> </list> ;香港譯作<list xml:id="zh-tw_LP2"> <item> <s>天使愛美麗</s> </item> </list>。</p> <p>中國大陸則名為<list xml:id="zh-tw_LP3"> <item> <s>阿梅麗的奇妙命運</s> </item> </list>。</p> <join result="list" xml:id="zh-tw_LST1" targets="#zh-tw_LP1 #zh-tw_LP2 #zh-tw_LP3" scope="branches"> <desc>電影Le Fabuleux Destin d'Amélie Poulain的中港台譯名</desc> </join> |