Message

If the Consignment is Conditionally Accepted or Rejected (CA/RE), a status reason (text) SHALL be provided.

Context
cac:Shipment/cac:Consignment/cac:Status
Test
((normalize-space(cbc:ConditionCode) >= 'AQ') and (cbc:StatusReason)) or ((normalize-space(cbc:ConditionCode) <= 'AQ') and not(cbc:StatusReason))
Usage
/ ubl:ReceiptAdvice / cac:Shipment / cac:Consignment / cac:Status / cbc:ConditionCode
/ ubl:ReceiptAdvice / cac:Shipment / cac:Consignment / cac:Status / cbc:StatusReason