<schemaSpec>
<schemaSpec> (especificación de esquema) genera un esquema TEI-conforme y la documentación relativa. [2.3 The Encoding Description 23.2 Modules and Schemas 24.5.1 Making a Unified ODD] | |||||||||||||||||||||||||||||||||||
Módulo | tagdocs — Documentation Elements | ||||||||||||||||||||||||||||||||||
Atributos |
|
||||||||||||||||||||||||||||||||||
Miembro de | |||||||||||||||||||||||||||||||||||
Contenido en | |||||||||||||||||||||||||||||||||||
Puede contener | |||||||||||||||||||||||||||||||||||
Nota |
A schemaSpec combines references to modules, individual element or macro declarations, and specification groups together to form a unified schema. The processing of the schemaSpec element must resolve any conflicts amongst the declarations it either contains or refers to. Different ODD processors may generate schemas and documentation using different concrete syntaxes. The source may be specified (on the source attribute) in the form of a private URI, for which the recommended format is |
||||||||||||||||||||||||||||||||||
Ejemplo |
<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. |
||||||||||||||||||||||||||||||||||
Ejemplo |
<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 |
||||||||||||||||||||||||||||||||||
Content model |
<content> |
||||||||||||||||||||||||||||||||||
Declaración |
<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.identEquiv | model.descLike )*, ( model.oddRef | model.oddDecl | listRef )* ) } |