<moduleRef>
<moduleRef> (référence de module) référence un module qui doit être incorporé dans un schéma. [23.2 Modules and Schemas]<a href="https://translate.tei-c.org/translate.html?edit=moduleRef.xml"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-label="Translation out of date." viewBox="0 0 16 16" style="position:absolute; top:2px; right:2px; color:red"><title>Translation out of date.</title> <path d="M6.146 7.146a.5.5 0 0 1 .708 0L8 8.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1-.708.708L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 0 1 0-.708z"></path> <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"></path></svg></a> | |||||||||||||||||||||||||||||||||||
Module | tagdocs — Documentation Elements | ||||||||||||||||||||||||||||||||||
Attributs |
|
||||||||||||||||||||||||||||||||||
Membre du | |||||||||||||||||||||||||||||||||||
Contenu dans |
tagdocs: schemaSpec specGrp
|
||||||||||||||||||||||||||||||||||
Peut contenir |
tagdocs: content
|
||||||||||||||||||||||||||||||||||
Note |
Les modules sont identifiés par le nom fourni comme valeur de l'attribut ident dans l'élément moduleSpec où ils sont déclarés. Un URI peut aussi être indiqué dans le cas d'un module non TEI et l'on s'attend à ce qu'il soit écrit comme un schéma RELAX NG. La fonction de cet élément est de rendre toutes les déclarations contenues par le module référencé disponibles pour le schéma que l'on compile. |
||||||||||||||||||||||||||||||||||
Exemple |
<moduleRef key="linking"/>
Cela implante le module<linking >. |
||||||||||||||||||||||||||||||||||
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> |
||||||||||||||||||||||||||||||||||
Modèle de contenu |
<content> |
||||||||||||||||||||||||||||||||||
Schéma Declaration |
<rng:element name="moduleRef"> element moduleRef { att.global.attributes, att.global.analytic.attributes, att.global.change.attributes, att.global.facs.attributes, att.global.linking.attributes, att.global.rendition.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? } |