Message

Catalogue line validity period MUST be within the range of the whole catalogue validity period

Context
//cac:CatalogueLine
Test
not(cac:LineValidityPeriod) or ((cac:LineValidityPeriod/cbc:StartDate and cac:LineValidityPeriod/cbc:EndDate) and (number(translate(cac:LineValidityPeriod/cbc:StartDate,'-','')) >= number(translate(/ubl:Catalogue/cac:ValidityPeriod/cbc:StartDate,'-',''))) and (number(translate(cac:LineValidityPeriod/cbc:EndDate,'-','')) <= number(translate(/ubl:Catalogue/cac:ValidityPeriod/cbc:EndDate,'-',''))))
Usage
/ ubl:Catalogue / cac:CatalogueLine / cac:LineValidityPeriod