§
<ref>
<ref> (reference) defines a reference to another location, possibly modified by additional text or comment. [3.6. Simple Links and Cross-References 16.1. Links] | |||||||||||
Module | core | ||||||||||
Attributes | Attributes att.global (@xml:id, @n, @xml:lang, @xml:base, @xml:space) (att.global.rendition (@rend, @rendition)) (att.global.responsibility (@cert, @resp)) att.pointing (@target) att.typed (@type)
| ||||||||||
Member of | |||||||||||
Contained by | |||||||||||
May contain | |||||||||||
Declaration | element ref { attribute target { text }, attribute type { text }?, macro.paraContent } | ||||||||||
Schematron | <sch:rule context="tei:ref"> <sch:report test="count(tokenize(normalize-space(@target), '\s+')) > 1"> <sch:name/> with multiple targets is not supported. </sch:report></sch:rule> | ||||||||||
Schematron | <sch:rule context="tei:ref[@type eq 'bibl']"> <sch:assert test="not(matches(., '^\(.*\)$'))"> Parentheses are not part of bibliographic references. Please move them out of <sch:name/>. </sch:assert></sch:rule> | ||||||||||
Schematron | <sch:rule context="tei:ref[@type eq 'bibl']"> <sch:assert test="id(substring-after(@target, '#'))/(self::tei:bibl|self::tei:person[ancestor::tei:particDesc/parent::tei:profileDesc])"> A bibliographic reference must point to an entry in the bibliography. </sch:assert></sch:rule> | ||||||||||
Schematron | <sch:rule context="tei:ref[id(substring-after(@target, '#'))/self::tei:bibl]"> <sch:assert test="@type eq 'bibl'"> A bibliographic reference must be typed as @type="bibl". </sch:assert></sch:rule> | ||||||||||
Schematron | <s:report test="@target and @cRef">Only one of the attributes @target' and @cRef' may be supplied on <s:name/></s:report> | ||||||||||
Example | See especially <ref target="http://www.natcorp.ox.ac.uk/Texts/A02.xml#s2">the second sentence</ref> | ||||||||||
Example | |||||||||||
Note | The target and cRef attributes are mutually exclusive. |