Message

Total tax amount cannot have more than 2 decimals.

Context
/ubl:CreditNote/cac:TaxTotal
Test
string-length(substring-after(cbc:TaxAmount, '.')) <= 2