Message

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

Context
cac:Shipment
Test
not(cbc:GrossVolumeMeasure) or not(cac:TransportHandlingUnit/cac:MeasurementDimension[normalize-space(cbc:AttributeID) = 'AAW']/cbc:Measure) or (cbc:GrossVolumeMeasure/@unitCode) > (cac:TransportHandlingUnit/cac:MeasurementDimension[normalize-space(cbc:AttributeID) = 'AAW']/cbc:Measure/@unitCode) or (cbc:GrossVolumeMeasure/@unitCode) < (cac:TransportHandlingUnit/cac:MeasurementDimension[normalize-space(cbc:AttributeID) = 'AAW']/cbc:Measure/@unitCode) 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