Message

UNDG MUST be coded according to the UNCL 8273 code list

Context
cbc:UNDGCode
Test
( ( not(contains(normalize-space(.),' ')) and contains( ' ADR ADS ADT ADU ADV AGS ANR ARD CFR COM GVE GVS ICA IMD RGE RID UI ZZZ ',concat(' ',normalize-space(.),' ') ) ) )
Usage
/ ubl:DespatchAdvice / cac:DespatchLine / cac:Item / cac:HazardousItem / cbc:UNDGCode