Message

Tax Category E MUST be used when exemption reason code is VATEX-EU-D

Context
cac:TaxCategory[upper-case(cbc:TaxExemptionReasonCode)='VATEX-EU-D']
Test
normalize-space(cbc:ID)='E'
Usage
/ ubl:Invoice / cac:TaxTotal / cac:TaxSubtotal / cac:TaxCategory / cbc:TaxExemptionReasonCode