Message

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

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