<exemplum>
<exemplum> 包含說明某一元素使用的單一範例,可任意配合註解段落。 22.4.4 Element Specifications | |
組件 | tagdocs — 22 Documentation Elements |
屬性 | att.typed (@type, @subtype) att.translatable (@version) |
屬於 | |
可包含 | |
宣告 |
element exemplum { att.global.attributes, att.typed.attributes, att.translatable.attributes, ( model.pLike*, ( egXML | eg ), model.pLike* ) } |
例子 | <exemplum> <p>The <gi>name</gi> element can be used for both personal names and place names:</p> <eg><![CDATA[ <q>My dear <name type="person">Mr. Bennet</name>,</q> said his lady to him one day, <q>have you heard that <name type="place">Netherfield Park</name> is let at last?</q>]]></eg> <p>As shown above, the <att>type</att> attribute may be used to distinguish the one from the other.</p> </exemplum> Note that an explicit end-tag must be supplied for the paragraph immediately preceding the eg element within an exemplum, to prevent the eg from being mistaken for part of the paragraph. |