Message

Value MUST be part of code list 'Document name code, full list (UNCL1001)'.

Context
/ubl:DespatchAdvice/cac:DespatchLine/cac:DocumentReference/cbc:DocumentTypeCode
Test
(some $code in $clUNCL1001 satisfies $code = normalize-space(text()))
Code lists
Document name code, full list (UNCL1001)
Usage
/ ubl:DespatchAdvice / cac:DespatchLine / cac:DocumentReference / cbc:DocumentTypeCode