Message

A Catalogue must have a validity period enddate grater or equal to the current date

Context
/ubl:Catalogue
Test
not(cac:ValidityPeriod/cbc:EndDate) or current-date() <= xs:date(cac:ValidityPeriod/cbc:EndDate)
Usage
/ ubl:Catalogue / cac:ValidityPeriod / cbc:EndDate