If the tax currency code is different from the document currency code, each tax subtotal has to include the tax amount in both currencies
/ubl:CreditNote/cac:TaxTotal/cac:TaxSubtotal
not(/ubl:CreditNote/cbc:TaxCurrencyCode) or (cbc:TaxAmount and cbc:TransactionCurrencyTaxAmount)