Message

Value MUST be part of code list 'Document status code (openPEPPOL)'.

Context
/ubl:ReceiptAdvice/cbc:DocumentStatusCode
Test
(some $code in $clDocumentStatusCode satisfies $code = normalize-space(text()))
Code lists
Document status code (openPEPPOL)
Usage
/ ubl:ReceiptAdvice / cbc:DocumentStatusCode