Message

The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.

Context
cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode
Test
(self::cbc:InvoiceTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 71 80 81 82 84 102 130 202 203 204 211 218 219 295 325 326 331 380 382 383 384 385 386 387 388 389 390 393 394 395 456 457 527 553 575 623 633 751 780 817 870 875 876 877 935 ', concat(' ', normalize-space(.), ' '))))) or (self::cbc:CreditNoteTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 81 83 261 262 296 308 381 396 420 458 532 ', concat(' ', normalize-space(.), ' ')))))
Usage
/ ubl:Invoice / cbc:InvoiceTypeCode
/ ubl:CreditNote / cbc:CreditNoteTypeCode