Message
The text within xref should be consistent with the label in the referenced element
The text within xref should be consistent with the label in the referenced element
This rule ASSERTS the following, raising an alert if FALSE:
(every $rid in tokenize(@rid, '\s+')[. ne ''] satisfies
matches(key('element-by-id', $rid)/label[1], concat('(\s+|', local:escape-for-regex(normalize-space(.)),
'\.?$)'))
) or not(@ref-type = ('aff', 'author-notes', 'fn', 'table', 'fig'))