Message

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

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