<moduleRef>

<moduleRef> (module reference) スキーマに組み入れられるモジュールを参照する。 [23.2 Modules and Schemas]
モジュール tagdocs — Documentation Elements
属性
prefix⚓︎ specifies a default prefix which will be prepended to all patterns from the imported module.
状態 任意
データ型 0–1 occurrences of teidata.xmlName 空白文字で区切られる
Schematron

<sch:rule context="tei:moduleRef">
<sch:report test="//*[ not( generate-id(.) eq generate-id( current() ) ) ]/@prefix = @prefix">The prefix attribute
of <sch:name/> should not match that of any other
element (it would defeat the purpose)</sch:report>
</sch:rule>
Schematron

<sch:rule context="tei:moduleRef">
<sch:report test="@except and @include">It is an error to supply both the @include and @except attributes</sch:report>
</sch:rule>
include⚓︎ supplies a list of the elements which are to be copied from the specified module into the schema being defined.
状態 任意
データ型 0–∞ occurrences of teidata.xmlName 空白文字で区切られる
except⚓︎ supplies a list of the elements which are not to be copied from the specified module into the schema being defined.
状態 任意
データ型 0–∞ occurrences of teidata.xmlName 空白文字で区切られる
key⚓︎ the name of a TEI module
状態 任意
データ型 teidata.xmlName
url⚓︎ (uniform resource locator) refers to a non-TEI module of RELAX NG code by external location
状態 任意
データ型 teidata.pointer
クラブのメンバー
上位
下位
tagdocs: content
解説

モジュールは、要素<module>の属性identの値として ある名前で指定される。TEIでないモジュールの場合は、URIはで示される。 このモジュールは、Relax NGスキーマで定義されていることが望まれる。

当該要素により、参照されたモジュールの全宣言が、当該スキーマにおい て使用可能になることでが期待される。

<a href="https://translate.tei-c.org/translate.html?edit=moduleRef.xml"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-label="Translation out of date." viewBox="0 0 16 16" style="position:absolute; top:2px; right:2px; color:red"><title>Translation out of date.</title> <path d="M6.146 7.146a.5.5 0 0 1 .708 0L8 8.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 9l1.147 1.146a.5.5 0 0 1-.708.708L8 9.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 9 6.146 7.854a.5.5 0 0 1 0-.708z"></path> <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"></path></svg></a>
<moduleRef key="linking"/>

This includes all objects available from the linking module.

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

This includes all elements 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.

Schematron

<sch:rule context="tei:moduleRef">
<sch:report test="* and @key"> Child elements of <sch:name/> are only allowed when an external module is being loaded
</sch:report>
</sch:rule>
Content model
<content>
 <elementRef key="contentminOccurs="0"/>
</content>
宣言
<rng:element name="moduleRef">
 <rng:ref name="att.global.attributes"/>
 <rng:ref name="att.global.analytic.attributes"/>
 <rng:ref name="att.global.change.attributes"/>
 <rng:ref name="att.global.facs.attributes"/>
 <rng:ref name="att.global.linking.attributes"/>
 <rng:ref name="att.global.rendition.attributes"/>
 <rng:ref name="att.global.responsibility.attributes"/>
 <rng:ref name="att.global.source.attributes"/>
 <rng:optional>
  <rng:attribute name="prefix">
   <rng:optional>
    <rng:ref name="teidata.xmlName"/>
   </rng:optional>
  </rng:attribute>
 </rng:optional>
 <rng:choice>
  <rng:optional>
   <rng:attribute name="include">
    <rng:list>
     <rng:zeroOrMore>
      <rng:ref name="teidata.xmlName"/>
     </rng:zeroOrMore>
    </rng:list>
   </rng:attribute>
  </rng:optional>
  <rng:optional>
   <rng:attribute name="except">
    <rng:list>
     <rng:zeroOrMore>
      <rng:ref name="teidata.xmlName"/>
     </rng:zeroOrMore>
    </rng:list>
   </rng:attribute>
  </rng:optional>
 </rng:choice>
 <rng:choice>
  <rng:optional>
   <rng:attribute name="key">
    <rng:ref name="teidata.xmlName"/>
   </rng:attribute>
  </rng:optional>
  <rng:optional>
   <rng:attribute name="url">
    <rng:ref name="teidata.pointer"/>
   </rng:attribute>
  </rng:optional>
 </rng:choice>
 <rng:optional>
  <rng:ref name="content"/>
 </rng:optional>
</rng:element>
element moduleRef
{
   att.global.attributes,
   att.global.analytic.attributes,
   att.global.change.attributes,
   att.global.facs.attributes,
   att.global.linking.attributes,
   att.global.rendition.attributes,
   att.global.responsibility.attributes,
   att.global.source.attributes,
   attribute prefix { teidata.xmlName? }?,
   (
      attribute include { list { teidata.xmlName* } }?
    | attribute except { list { teidata.xmlName* } }?
   ),
   ( attribute key { teidata.xmlName }? | attribute url { teidata.pointer }? ),
   content?
}