Message

Value MUST be part of code list 'Measured attribute code for weight statement (UNCL6313 Subset) T122'.

Context
/ubl:WeightStatement/cac:Shipment/cac:GoodsItem/cac:MeasurementDimension/cbc:AttributeID
Test
(some $code in $clUNCL6313-T122 satisfies $code = normalize-space(text()))
Code lists
Measured attribute code for weight statement (UNCL6313 Subset) T122
Usage
/ ubl:WeightStatement / cac:Shipment / cac:GoodsItem / cac:MeasurementDimension / cbc:AttributeID