<egXML> [http://www.tei-c.org/ns/Examples]
<egXML> (example of XML) contains a single well-formed XML fragment demonstrating the use of some XML element or attribute, in which the egXML element itself functions as the root element. [22.4.4 Element Specifications 22.4.5 Attribute List Specification] | |||||||
組件 | tagdocs — 22 Documentation Elements | ||||||
屬性 | att.global (@xml:id, @n, @xml:lang, @rend, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change))
| ||||||
屬於 | |||||||
可包含在於 | core: add cit corr del desc emph head hi item l meeting note orig p q quote ref reg said sic stage title unclear dictionaries: case colloc def dictScrap entryFree etym form gen gram gramGrp hyph iType lang lbl mood number orth per pos pron stress subc syll tns usg xr msdescription: accMat acquisition additions collation condition custEvent decoNote filiation foliation layout musicNotation origin provenance source support surrogates spoken: writing tagdocs: exemplum textstructure: argument body div div1 div2 div3 div4 div5 div6 div7 docEdition epigraph imprimatur postscript titlePart verse: rhyme | ||||||
可包含 | ANY | ||||||
宣告 |
element egXML { att.global.attributes, att.global.linking.attributes, att.global.analytic.attributes, att.global.facs.attributes, att.global.change.attributes, attribute valid { "true" | "feasible" | "false" }?, text | macro.anyXML* } | ||||||
例子 |
<egXML xmlns="http://www.tei-c.org/ns/Examples"> <langUsage> <language ident="fr">English</language> </langUsage> </egXML> <!-- Though syntactically valid, this example is incorrect --> | ||||||
例子 |
<egXML xmlns="http://www.tei-c.org/ns/Examples"
xmlns:tei="http://www.tei-c.org/ns/1.0"> <div> <head>A slide about<gi>egXML</gi></head> <list> <item><gi>egXML</gi> can be used to give XML examples in the TEI Examples namespace</item> <item>Attributes values for<att>valid</att>: <list tei:rend="collapsed"> <item><val tei:rend="green">true</val>: intended to be fully valid</item> <item><val tei:rend="amber">feasible</val>: valid if missing nodes provided</item> <item><val tei:rend="red">false</val>: not intended to be valid</item> </list> </item> <item>The<att>rend</att> attribute in the TEI namespace can be used for recording how parts of the example was rendered.</item> </list> </div> </egXML> |