<elementSpec>
<elementSpec> (spécification d'élément) documente la structure, le contenu et l'emploi d'un élément. [22.5 Element Specifications 22 Documentation Elements] | |||||||
Module | tagdocs — Documentation Elements | ||||||
Attributs | 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.identified (@ident, @predeclare, @module) (att.combinable (@mode) (att.deprecated (@validUntil)) ) att.namespaceable (@ns)
|
||||||
Membre du | |||||||
Contenu dans |
core: add corr del desc emph head hi item l meeting note orig p q quote ref reg said sic stage textLang 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 signatures source summary support surrogates typeNote
namesdates: occupation
tagdocs: schemaSpec specGrp
textstructure: argument body div div1 div2 div3 div4 div5 div6 div7 docEdition epigraph imprimatur postscript salute signed titlePart trailer
verse: rhyme
|
||||||
Peut contenir | |||||||
Exemple |
<elementSpec module="tagdocs"
xml:id="fr_Code" ident="code"> <desc>contient le code littéral</desc> <classes> <memberOf key="model.emphLike"/> </classes> <content> <textNode/> </content> <attList> <attDef ident="type" usage="opt"> <desc>la langue du code</desc> <datatype> <dataRef key="teidata.enumerated"/> </datatype> </attDef> </attList> </elementSpec> |
||||||
Schematron |
<sch:rule context="tei:elementSpec[ @mode eq 'delete' ]"> <sch:report test="child::*">This elementSpec element has a mode= of "delete" even though it has child elements. Change the mode= to "add", "change", or "replace", or remove the child elements.</sch:report> </sch:rule> <sch:rule context="tei:elementSpec[ @mode = ('add','change','replace') ]"> <sch:assert test="child::* | (@* except (@mode, @ident))">This elementSpec element has a mode= of "<sch:value-of select="@mode"/>", but does not have any child elements or schema-changing attributes. Specify child elements, use validUntil=, predeclare=, ns=, or prefix=, or change the mode= to "delete".</sch:assert> </sch:rule> |
||||||
Modèle de contenu |
<content> |
||||||
Schéma Declaration |
<rng:element name="elementSpec"> element elementSpec { 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.identified.attributes, att.combinable.attributes, att.deprecated.attributes, att.namespaceable.attributes, attribute prefix { teidata.xmlName }?, ( ( model.glossLike | model.descLike )*, classes?, content?, valList?, constraintSpec*, attList?, ( model | modelGrp | modelSequence )*, exemplum*, remarks*, listRef* ) } |