Message

Shipment gross volume measure SHALL greater or equal of the transport handling units specified

Context
cac:Shipment
Test
not(cbc:GrossVolumeMeasure) or number(cbc:GrossVolumeMeasure) >= sum(cac:TransportHandlingUnit/cac:MeasurementDimension[normalize-space(cbc:AttributeID) = 'AAW']/cbc:Measure)
Usage
/ ubl:DespatchAdvice / cac:Shipment / cbc:GrossVolumeMeasure
/ ubl:DespatchAdvice / cac:Shipment / cac:TransportHandlingUnit / cac:MeasurementDimension / cbc:Measure