Message

A transport handling unit type MUST be coded according to the UN/ECE Recommendation 21

Context
cbc:TransportHandlingUnitTypeCode
Test
( ( not(contains(normalize-space(.),' ')) and contains( ' 1A 1B 1D 1G 1W 2C 3A 3H 43 4A 4B 4C 4D 4F 4G 4H 5H 5L 5M 6H 6P AA AB AC AD AE AF AG AH AI AJ AM AP AT AV BA BB BC BD BE BF BG BH BI BJ BK BL BM BN BO BP BQ BR BS BT BU BV BW BX BY BZ CA CB CC CD CE CF CG CH CI CJ CK CL CM CN CO CP CQ CR CS CT CU CV CW CX CY CZ DA DB DC DG DH DI DJ DK DL DM DN DP DR DS DT DU DV DW DX DY EC ED EE EF EG EH EI EN FC FD FI FL FO FP FR FT FW FX GB GI GR GU GZ HA HB HC HG HR IA IB IC ID IE IF IG IH IK IL IN IZ JC JG JR JT JY KG LG LT LV LZ MB MC MR MS MT MW MX NA NE NF NG NS NT NU NV OA OB OC OD OE OF OK PA PB PC PD PE PF PG PH PI PJ PK PL PN PO PR PT PU PV PX PY PZ QA QB QC QD QF QG QH QJ QK QL QM QN QP QQ QR QS RD RG RJ RK RL RO RT RZ SA SB SC SD SE SH SI SK SL SM SO SP SS ST SU SV SW SX SY SZ TB TC TD TI TK TL TN TO TR TS TU TV TY TZ UC VA VG VI VK VL VO VP VQ VN VR VY WA WB WC WD WF WG WH WJ WK WL WM WN WP WQ WR WS WT WU WV WW WX WY WZ XA XB XC XD XF XG XH XJ XK YA YB YC YD YF YG YH YJ YK YL YM YN YP YQ YR YS YT YV YW YX YY YZ ZA ZB ZC ZD ZF ZG ZH ZJ ZK ZL ZM ZN ZP ZQ ZR ZS ZT ZU ZV ZW ZX ZY ZZ ',concat(' ',normalize-space(.),' ') ) ) )
Usage
/ ubl:DespatchAdvice / cac:DespatchLine / cac:Shipment / cac:TransportHandlingUnit / cbc:ID