<schemaSpec>
<schemaSpec> (spécification de schéma) génère un schéma conforme à la TEI et la documentation qui l'accompagne. [2.3 The Encoding Description 22.2 Modules and Schemas 23.5.1 Making a Unified ODD] | |||||||||||||||||||||||||||||||||||||
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) att.docStatus (@status)
| ||||||||||||||||||||||||||||||||||||
Membre du | |||||||||||||||||||||||||||||||||||||
Contenu dans | header: change encodingDesc handNote licence scriptNote msdescription: accMat acquisition additions collation condition custEvent decoNote filiation foliation layout musicNotation origin provenance signatures source summary support surrogates typeNote namesdates: occupation tagdocs: specGrp transcr: metamark | ||||||||||||||||||||||||||||||||||||
Peut contenir | |||||||||||||||||||||||||||||||||||||
Note | Un schéma combine des références aux modules ou aux groupes de spécifications avec d'autres déclarations atomiques. Le traitement d'un élément de schéma doit résoudre tous les conflits entre les déclarations qu'il contient ou les références. Des processeurs ODD différents peuvent générer des schémas et une documentation en utilisant différentes syntaxes concrètes. | ||||||||||||||||||||||||||||||||||||
Exemple | <schemaSpec prefix="TEI_" ident="testsvg" start="TEI svg"> <moduleRef source="tei:current" key="header"/> <moduleRef key="core"/> <moduleRef key="drama"/> <moduleRef url="svg11.rng"/> </schemaSpec> This schema combines elements from the current versions of the drama and core modules, the current release version of the header module, and elements from an existing RELAX NG schema available from the URL indicated. | ||||||||||||||||||||||||||||||||||||
Exemple | <schemaSpec ident="Bare-plus" source="tei_bare.compiled.odd" start="TEI"> <moduleRef key="tei"/> <moduleRef key="header"/> <elementRef key="q" source="tei:3.0.0"/> <moduleRef key="textstructure"/> </schemaSpec> This schema starts with a pre-existing customization of the TEI called TEI Bare (a customization with a minimal selection of elements). The q element is not available in TEI Bare, but it can be brought back. In this case, we will get the version defined in TEI P5 release 3.0.0 | ||||||||||||||||||||||||||||||||||||
Schematron | enforces the deprecation of schemaSpec as a child of anything other than front, body, back, encodingDesc, div, or any of the numbered division elements. <sch:rule context="tei:schemaSpec|teix:schemaSpec"> <sch:assert test=" parent::teix:egXML | parent::tei:encodingDesc | parent::teix:encodingDesc | parent::tei:front | parent::teix:front | parent::tei:back | parent::teix:back | parent::tei:body | parent::teix:body | parent::tei:div | parent::teix:div | parent::tei:div1 | parent::teix:div1 | parent::tei:div2 | parent::teix:div2 | parent::tei:div3 | parent::teix:div3 | parent::tei:div4 | parent::teix:div4 | parent::tei:div5 | parent::teix:div5 | parent::tei:div6 | parent::teix:div6 | parent::tei:div7 | parent::teix:div7" role="nonfatal">WARNING: use of deprecated construct — the “schemaSpec” element will no longer be a valid child of “<sch:value-of select="name(..)"/>” as of 2021-10-23; instead, it should be a child of “front”, “body”, “back”, “encodingDesc”, or a division element.</sch:assert> </sch:rule> | ||||||||||||||||||||||||||||||||||||
Modèle de contenu | <content> | ||||||||||||||||||||||||||||||||||||
Schéma Declaration | <rng:element name="schemaSpec"> element schemaSpec { 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, att.docStatus.attributes, attribute start { list { teidata.name+ } }?, attribute prefix { teidata.xmlName }?, attribute targetLang { teidata.language }?, attribute docLang { list { teidata.language+ } }?, attribute defaultExceptions { list { teidata.namespaceOrName+ } }?, ( ( model.glossLike | model.descLike )*, ( model.oddRef | model.oddDecl )* ) } |