Message

Value MUST be part of code list 'Optional criterias'.

Context
/espd:ESPDResponse/ext:UBLExtensions/ext:UBLExtension/ext:ExtensionContent/lots:Lots/lots:Lot/lots:OptionalCritierias/lots:ID
Test
(some $code in $clespd-CriteriaOptional satisfies $code = normalize-space(text()))
Code lists
Optional criterias
Usage
/ espd:ESPDResponse / ext:UBLExtensions / ext:UBLExtension / ext:ExtensionContent / lots:Lots / lots:Lot / lots:OptionalCritierias / lots:ID