and not(following-sibling::lido:rightsType/@lido:type = 'http://terminology.lido-schema.org/lido00921'
or preceding-sibling::lido:rightsType/@lido:type = 'http://terminology.lido-schema.org/lido00921')
or @lido:type = 'http://terminology.lido-schema.org/lido00921'
and not(following-sibling::lido:rightsType/@lido:type = 'http://terminology.lido-schema.org/lido00920'
or preceding-sibling::lido:rightsType/@lido:type = 'http://terminology.lido-schema.org/lido00920')">
<sch:value-ofselect="parent::*/name()"/> can either hold a specific or a generic lido:rightsType (mutually exclusive).
</sch:assert>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:title>Possible values for lido:rightsType@lido:type</sch:title>
<sch:p>In LIDOv1.1 a lido:type attribute is introduced for lido:rightsType in order to discern generic rights and specific ones.
This rule ensures that only the URIs for these two types of rights are used when @lido:type is set.</sch:p>
<sch:ruleabstract="true"id="rightsType_type">
<sch:assertrole="warn"
test="(@lido:type = 'http://terminology.lido-schema.org/lido00920' or @lido:type = 'http://terminology.lido-schema.org/lido00921')
or not(@lido:type)">
@lido:type can either be omitted or must hold one of the following URIs: http://terminology.lido-schema.org/lido00920, http://terminology.lido-schema.org/lido00921.