<moduleRef>

<moduleRef> (riferimento al modulo) indica un modulo da includere all'interno di uno schema
Modulotagdocs — 22 Documentation Elements
Attributi
keynome di un modulo TEI
Stato Opzionale
Tipo di dati
xsd:NCName
url (URL) indica la collocazione esterna di un modulo non TEI che utilizza il codice RELAX NG
Stato Opzionale
Tipo di dati
data.pointer
Usato daschemaSpec model.oddRef
Può contenere
tagdocs: content
Dichiarazione
element moduleRef
{
   att.global.attributes,
   ( attribute key { xsd:NCName }? | attribute url { data.pointer }? ),
   content?
}

<sch:pattern name="testschemapattern">
<sch:rule context="tei:moduleRef">
 <sch:report test="* and @key"> child elements of moduleRef are only allowed when an external module
   is being loaded
 </sch:report>
</sch:rule>
</sch:pattern>
Esempio
<moduleRef key="linking"/>

This embeds the linking module.

Nota
Modules are identified by the name supplied as value for the ident attribute on the <moduleSpec> element in which they are declared. A URI may also be supplied in the case of a non-TEI module, and this is expected to be written as a RELAX NG schema.
The effect of this element is to make all the declarations contained by the referenced module available to the schema being compiled.