Message

Invoice type code MUST be set according to the profile.

Context
cbc:InvoiceTypeCode
Test
$profile != '01' or (some $code in tokenize('380 383 386 393 82 80 84 395 575 623 780', '\s') satisfies normalize-space(text()) = $code)
Usage
/ ubl:Invoice / cbc:InvoiceTypeCode