<moduleRef>

<moduleRef> (referencia de módulo) indica un módulo que se ha de incluir al interno de un esquema. [22.2 Modules and Schemas]
Módulotagdocs — Documentation Elements
Atributosatt.global (@xml:id, @n, @xml:lang, @rend, @style, @rendition, @xml:base, @xml:space) (att.global.linking (@corresp, @synch, @sameAs, @copyOf, @next, @prev, @exclude, @select)) (att.global.analytic (@ana)) (att.global.facs (@facs)) (att.global.change (@change)) att.readFrom (@source)
prefixspecifies a default prefix which will be prepended to all patterns from the imported module
Estado Opcional
Tipo de datos 0–1 apariciones de 

<rng:ref name="data.xmlName"/>
data.xmlName
separado por espacio en blanco
Schematron

<s:rule context="tei:moduleRef">
<s:report
  test="//*[ not( generate-id(.) eq generate-id( current() ) ) ]/@prefix = @prefix">
The prefix attribute
of <s:name/> should not match that of any other
element (it would defeat the purpose)</s:report></s:rule>
includesupplies a list of the elements which are to be copied from the specified module into the schema being defined.
Estado Opcional
Tipo de datos 0–∞ apariciones de 

<rng:ref name="data.xmlName"/>
data.xmlName
separado por espacio en blanco
exceptsupplies a list of the elements which are not to be copied from the specified module into the schema being defined.
Estado Opcional
Tipo de datos 0–∞ apariciones de 

<rng:ref name="data.xmlName"/>
data.xmlName
separado por espacio en blanco
keyel nombre de un módulo de TEI
Estado Opcional
Tipo de datos

<rng:ref name="data.xmlName"/>
data.xmlName
url(localizador de recurso uniforme) se refiere a un módulo no-de-TEI del código de RELAX NG mediante una localización externa
Estado Opcional
Tipo de datos

<rng:ref name="data.pointer"/>
data.pointer
Miembro de
Contenido en
Puede contener
tagdocs: content
Declaración

<rng:element name="moduleRef">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.readFrom.attributes"/>
 <rng:optional>
  <rng:attribute name="prefix">
   <rng:ref name="data.xmlName"/>
  </rng:attribute>
 </rng:optional>
 <rng:choice>
  <rng:optional>
   <rng:attribute name="include">
    <rng:list>
     <rng:zeroOrMore>
      <rng:ref name="data.xmlName"/>
     </rng:zeroOrMore>
    </rng:list>
   </rng:attribute>
  </rng:optional>
  <rng:optional>
   <rng:attribute name="except">
    <rng:list>
     <rng:zeroOrMore>
      <rng:ref name="data.xmlName"/>
     </rng:zeroOrMore>
    </rng:list>
   </rng:attribute>
  </rng:optional>
 </rng:choice>
 <rng:choice>
  <rng:optional>
   <rng:attribute name="key">
    <rng:ref name="data.xmlName"/>
   </rng:attribute>
  </rng:optional>
  <rng:optional>
   <rng:attribute name="url">
    <rng:ref name="data.pointer"/>
   </rng:attribute>
  </rng:optional>
 </rng:choice>
 <rng:optional>
  <rng:ref name="content"/>
 </rng:optional>
</rng:element>
element moduleRef
{
   att.global.attributes,
   att.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.readFrom.attributes,
   attribute prefix { data.xmlName }?,
   (
      attribute include { list { data.xmlName* } }?
    | attribute except { list { data.xmlName* } }?
   ),
   ( attribute key { data.xmlName }? | attribute url { data.pointer }? ),
   content?
}
Schematron

<s:rule context="tei:moduleRef">
<s:report test="* and @key">Child elements of <s:name/> are only allowed when an external module is being loaded
</s:report></s:rule>
Ejemplo
<moduleRef key="linking"/>

This includes all objects available from the linking module.

Ejemplo
<moduleRef key="linkingexclude="linkGrp link"/>

This includes all objects available from the linking module except for the link and linkGrp elements.

Ejemplo
<moduleRef key="linkingexclude="linkGrp link"/>

This includes all objects available from the linking module except for the link and linkGrp elements.

Ejemplo
<moduleRef key="linkinginclude="linkGrp link"/>

This includes only the link and linkGrp elements from the linking module.