Message

Multiple tax subtotals per tax category code is not allowed.

Context
ubl:Invoice/cac:TaxTotal
Test
count(distinct-values(cac:TaxSubtotal/cac:TaxCategory/cbc:ID/normalize-space(text()))) = count(cac:TaxSubtotal)