CFDI40205

El valor del campo TotalImpuestosTrasladados no es igual a la suma de los importes registrados en el elemento hijo Traslado (…, …).

In English TotalImpuestosTrasladados must be the sum of the summary's Traslado amounts.

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
/cfdi:Comprobante/cfdi:Impuestos
Test
not(@TotalImpuestosTrasladados) or mx:dec(@TotalImpuestosTrasladados) = $transferred

Checked with CFDI 4.0