PEPPOL-T111-R001

If status code is one of: CA, UQ or RE then there SHALL be at a clarification code in Invoice Response.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
cac:Response[contains( ' CA UQ RE ',concat(' ',normalize-space(cbc:ResponseCode),' '))]
Test
exists(cac:Status/cbc:StatusReasonCode)

Checked with Peppol Invoice Response