<elementRef>
<elementRef> points to the specification for some element which is to be included in a schema. [23.2 Modules and Schemas] | |||||||
Module | tagdocs — Documentation Elements | ||||||
Attributes |
|
||||||
Member of | |||||||
Contained by |
tagdocs: alternate content schemaSpec sequence specGrp
|
||||||
May contain | Empty element | ||||||
Note |
Elements are identified by the name supplied as value for the ident attribute on the elementSpec element in which they are declared. TEI element names are unique. |
||||||
Example |
<elementRef key="p"/>
Include in the schema an element named p available from the current default source. |
||||||
Example |
<elementRef key="p" source="tei:1.2.1"/>
Include in the schema an element named p available from the TEI P5 1.2.1 release. |
||||||
Schematron |
<sch:pattern> <sch:rule context="tei:elementRef[ parent::tei:schemaSpec | parent::tei:specGrp ]"> <sch:report test="@minOccurs | @maxOccurs" role="error">An element reference is not repeatable when part of a schema specification (and thus this <elementRef> should not have @minOccurs or @maxOccurs).</sch:report> </sch:rule> <sch:rule context="tei:content//tei:elementRef"> <sch:report test="@source" role="error">An element reference within a content model must refer to a locally defined element specification (and thus this <elementRef> should not have @source).</sch:report> </sch:rule> </sch:pattern> |
||||||
Content model |
<content> |
||||||
Schema Declaration |
<rng:element name="elementRef"> element elementRef { 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, att.repeatable.attributes, attribute key { teidata.xmlName }, empty } |