Message

Value MUST be part of code list 'Currency codes (ISO 4217)'.

Context
/ubl:OrderChange/cac:OrderLine/cac:LineItem/cac:AllowanceCharge/cbc:Amount
Test
not(@currencyID) or (some $code in $clISO4217 satisfies $code = @currencyID)
Code lists
Currency codes (ISO 4217)
Usage
/ ubl:OrderChange / cac:OrderLine / cac:LineItem / cac:AllowanceCharge / cbc:Amount / @currencyID