<moduleRef>
<moduleRef> (module reference) references a module which is to be incorporated into a schema. | |||||||||||||||||||||||||
Module | tagdocs — 22 Documentation Elements | ||||||||||||||||||||||||
Attributes | att.global (@xml:id, @n, @xml:lang, @rend, @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.readFrom (@source)
| ||||||||||||||||||||||||
Used by | |||||||||||||||||||||||||
Contained by | core: add corr del desc emph head hi item l meeting note orig p q quote ref reg said sic stage title unclear dictionaries: case colloc def dictScrap entryFree etym form gen gram gramGrp hyph iType lang lbl mood number orth per pos pron stress subc syll tns usg xr msdescription: accMat acquisition additions collation condition custEvent decoNote filiation foliation layout musicNotation origin provenance source support surrogates spoken: writing tagdocs: schemaSpec specGrp textstructure: argument body div div1 div2 div3 div4 div5 div6 div7 docEdition epigraph imprimatur postscript titlePart verse: rhyme | ||||||||||||||||||||||||
May contain | tagdocs: content | ||||||||||||||||||||||||
Declaration |
element moduleRef { att.global.attributes, att.global.linking.attributes, att.global.analytic.attributes, att.global.facs.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> | ||||||||||||||||||||||||
Example |
<moduleRef key="linking"/>
This includes all objects available from the linking module. | ||||||||||||||||||||||||
Example |
<moduleRef key="linking" exclude="linkGrp link"/>
This includes all objects available from the linking module except for the link and linkGrp elements. | ||||||||||||||||||||||||
Example |
<moduleRef key="linking" exclude="linkGrp link"/>
This includes all objects available from the linking module except for the link and linkGrp elements. | ||||||||||||||||||||||||
Example |
<moduleRef key="linking" include="linkGrp link"/>
This includes only the link and linkGrp elements from the linking module. | ||||||||||||||||||||||||
Note |
If neither include nor exclude is
supplied, the effect of this element is to make all the declarations
contained by the referenced module available to the schema being
compiled. If both attributes are supplied, an ODD
processor should signal an error.
A TEI module is identified by the name supplied as value for
the ident attribute on a moduleSpec
element. The source attribute may be used to specify an
online source from which the specification of that module may be
read. A URI may alternatively be supplied in the case of a non-TEI
module, and this is expected to be written as a RELAX NG schema.
|