Message

The total tax amount MUST equal the sum of tax amounts per category.

Context
/ubl:CreditNote/cac:TaxTotal
Test
(xs:decimal(child::cbc:TaxAmount)= round(number(xs:decimal(sum(cac:TaxSubtotal/cbc:TaxAmount)) * 10 * 10)) div 100)
Usage
/ ubl:CreditNote / cac:TaxTotal / cbc:TaxAmount