<moduleRef>

<moduleRef> (module reference) references a module which is to be incorporated into a schema.
Modul tagdocs — 22 Documentation Elements
Neben global gültigen Attributen att.readFrom (@source)
include supplies a list of the elements which are to be copied from the specified module into the schema being defined.
Zustand Optional
Datentyp 0–∞ Vorkommen von 

<rng:data type="NCName"/>
xsd:NCName
Durch Leerzeichen getrennt
except supplies a list of the elements which are not to be copied from the specified module into the schema being defined.
Zustand Optional
Datentyp 0–∞ Vorkommen von 

<rng:data type="NCName"/>
xsd:NCName
Durch Leerzeichen getrennt
key the name of a TEI module
Zustand Optional
Datentyp

<rng:data type="NCName"/>
xsd:NCName
url (uniform resource locator) refers to a non-TEI module of RELAX NG code by external location
Zustand Optional
Datentyp

<rng:ref name="data.pointer"/>
data.pointer
Verwendet von
Kann enthalten
tagdocs: content
Deklaration

<rng:element name="moduleRef">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.readFrom.attributes"/>
 <rng:choice>
  <rng:optional>
   <rng:attribute name="include">
    <rng:list>
     <rng:zeroOrMore>
      <rng:data type="NCName"/>
     </rng:zeroOrMore>
    </rng:list>
   </rng:attribute>
  </rng:optional>
  <rng:optional>
   <rng:attribute name="except">
    <rng:list>
     <rng:zeroOrMore>
      <rng:data type="NCName"/>
     </rng:zeroOrMore>
    </rng:list>
   </rng:attribute>
  </rng:optional>
 </rng:choice>
 <rng:choice>
  <rng:optional>
   <rng:attribute name="key">
    <rng:data type="NCName"/>
   </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.readFrom.attributes,
   (
      attribute include { list { xsd:NCName* } }?
    | attribute except { list { xsd:NCName* } }?
   ),
   ( attribute key { xsd:NCName }? | attribute url { data.pointer }? ),
   content?
}
Schematron

<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>
Beispiel
<moduleRef key="linking"/>

This includes all objects available from the linking module.

Beispiel
<moduleRef key="linking" exclude="linkGrp link"/>

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

Beispiel
<moduleRef key="linking" exclude="linkGrp link"/>

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

Beispiel
<moduleRef key="linking" include="linkGrp link"/>

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