<moduleRef>

<moduleRef> (module reference) スキーマに組み入れられるモジュールを参照する.
モジュールtagdocs — 22 Documentation Elements
属性att.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
状態 任意
データ型 0–1 occurrences of 

<rng:data type="NCName"/>
xsd:NCName
空白文字で区切られる
Schematron

<sch:rule context="tei:moduleRef">
<sch:report
  test="//*[ not( generate-id(.) eq generate-id( current() ) ) ]/@prefix = @prefix">
The prefix attribute
of a moduleRef element should not match that of any other
element (it would defeat the purpose)</sch:report></sch:rule>
includesupplies a list of the elements which are to be copied from the specified module into the schema being defined.
状態 任意
データ型 0–∞ occurrences of 

<rng:data type="NCName"/>
xsd:NCName
空白文字で区切られる
exceptsupplies a list of the elements which are not to be copied from the specified module into the schema being defined.
状態 任意
データ型 0–∞ occurrences of 

<rng:data type="NCName"/>
xsd:NCName
空白文字で区切られる
keythe name of a TEI module
状態 任意
データ型

<rng:data type="NCName"/>
xsd:NCName
url (uniform resource locator) refers to a non-TEI module of RELAX NG code by external location
状態 任意
データ型

<rng:ref name="data.pointer"/>
data.pointer
当該モジュールを使用するもの
上位
下位
tagdocs: content
宣言

<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:data type="NCName"/>
  </rng:attribute>
 </rng:optional>
 <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.global.linking.attributes,
   att.global.analytic.attributes,
   att.global.facs.attributes,
   att.global.change.attributes,
   att.readFrom.attributes,
   attribute prefix { xsd:NCName }?,
   (
      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>
<moduleRef key="linking"/>

This includes all objects available from the linking module.

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

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

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

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

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

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

解説
モジュールは,要素<module>の属性identの値として ある名前で指定される.TEIでないモジュールの場合は,URIはで示される. このモジュールは,Relax NGスキーマで定義されていることが望まれる.
当該要素により,参照されたモジュールの全宣言が,当該スキーマにおい て使用可能になることでが期待される.