Message

The handling unit measure AttributeID MUST be of value "AAB" for Unit gross weight or "AAW" for Gross volume

Context
cac:TransportHandlingUnit/cac:MeasurementDimension//cbc:AttributeID
Test
( ( not(contains(normalize-space(.),' ')) and contains( ' AAB AAW ',concat(' ',normalize-space(.),' ') ) ) )
Usage
/ ubl:DespatchAdvice / cac:DespatchLine / cac:Shipment / cac:TransportHandlingUnit / cac:MeasurementDimension / cbc:Measure