Message
kwd-group[@kwd-group-type = ('JEL', 'MSC2010', 'MSC2000', 'PhySH', 'SDG')]
with @kwd-group-type "@kwd-group-type" should have @vocab="$kwd-group-type/@vocab" and vocab-identifier="$kwd-group-type/@vocab-identifier"
Rule XPath:
This rule ASSERTS the following, raising an alert if FALSE:
let $kwd-group-type := $kwd-group-table//kwd-group-type[@id eq current()/@kwd-group-type]
return( (empty((@vocab, $kwd-group-type/@vocab)) or @vocab eq $kwd-group-type/@vocab) and
@vocab-identifier eq $kwd-group-type/@vocab-identifier) or not($kwd-group-type)