Message

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

Context
/ubl:DespatchAdvice/cac:DespatchLine/cac:Item/cac:ManufacturerParty/cac:PartyIdentification/cbc:ID
Test
not(@schemeID) or (some $code in $clICD satisfies $code = @schemeID)
Code lists
ISO 6523 ICD list
Usage
/ ubl:DespatchAdvice / cac:DespatchLine / cac:Item / cac:ManufacturerParty / cac:PartyIdentification / cbc:ID / @schemeID