Message

A validity period end date MUST be later or equal to a validity period start date if both validity period end date and validaty period start date are present

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