Message

Value MUST be part of code list 'ISO 6523 ICD list' or 'SEPA indicator'.

Context
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID
Test
not(@schemeID) or (some $code in $clICD satisfies $code = @schemeID) or (some $code in $clSEPA satisfies $code = @schemeID)
Code lists
ISO 6523 ICD list, SEPA indicator
Usage
/ ubl:Invoice / cac:AccountingSupplierParty / cac:Party / cac:PartyIdentification / cbc:ID / @schemeID