Message

A TAX breakdown with TAX Category codes S, Z, L and M SHALL NOT have a TAX exemption reason text

Context
cac:TaxSubtotal/cac:TaxCategory[cbc:TaxExemptionReason]
Test
contains( ' E AE O K G ',concat(' ',normalize-space(cbc:ID),' '))