<moduleRef>
<moduleRef> (referencia de módulo) indica un módulo que se ha de incluir al interno de un esquema. [23.2 Modules and Schemas] | |||||||||||||||||||||||||||||||||||
Módulo | tagdocs — Documentation Elements | ||||||||||||||||||||||||||||||||||
Atributos |
|
||||||||||||||||||||||||||||||||||
Miembro de | |||||||||||||||||||||||||||||||||||
Contenido en |
tagdocs: schemaSpec specGrp
|
||||||||||||||||||||||||||||||||||
Puede contener |
tagdocs: content
|
||||||||||||||||||||||||||||||||||
Nota |
If neither include nor except is supplied, the effect of this element is to make all the declarations contained by the referenced module available to the schema being compiled. If both attributes are supplied, an ODD processor should signal an error. A TEI module is identified by the name supplied as value for the ident attribute on a moduleSpec element. The source attribute may be used to specify an online source from which the specification of that module may be read. A URI may alternatively be supplied in the case of a non-TEI module, and this is expected to be written as a RELAX NG schema. If the url attribute is used, the content element may also be supplied as a child of this element. Its content (which is assumed to be a fragment of RELAX NG code) will be copied along with the content of the resource indicated by the url attribute into the target RELAX NG schema. |
||||||||||||||||||||||||||||||||||
Ejemplo |
<moduleRef key="linking"/>
This includes all objects available from the linking module. |
||||||||||||||||||||||||||||||||||
Ejemplo |
<moduleRef key="linking"
except="linkGrp link"/> This includes all elements available from the linking module except for the link and linkGrp elements. |
||||||||||||||||||||||||||||||||||
Ejemplo |
<moduleRef key="linking"
include="linkGrp link"/> This includes only the link and linkGrp elements from the linking module. |
||||||||||||||||||||||||||||||||||
Schematron |
<sch:rule context="tei:moduleRef"> <sch:report test="* and @key"> Child elements of <sch:name/> are only allowed when an external module is being loaded </sch:report> </sch:rule> |
||||||||||||||||||||||||||||||||||
Content model |
<content> |
||||||||||||||||||||||||||||||||||
Declaración |
<rng:element name="moduleRef"> element moduleRef { 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, attribute prefix { teidata.xmlName? }?, ( attribute include { list { teidata.xmlName* } }? | attribute except { list { teidata.xmlName* } }? ), ( attribute key { teidata.xmlName }? | attribute url { teidata.pointer }? ), content? } |