Message

Multiple tax subtotals per tax category code is not allowed.

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