<moduleRef>

<moduleRef> (module reference) references a module which is to be incorporated into a schema.
Modultagdocs — 22 Documentation Elements
Attribute
keythe 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: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,
   ( 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>
Beispiel
<moduleRef key="linking"/>

This embeds the linking module.