CFDI40219

El valor seleccionado debe corresponder a un valor del catalogo donde la columna impuesto corresponda con el campo impuesto y la columna factor corresponda con el campo TipoFactor.

In English The rate of a transferred tax in the summary is not in catalogue c_TasaOCuota for its tax and factor.

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/cfdi:Traslados/cfdi:Traslado
Test
not(@TasaOCuota) or $factor = 'Exento' or mx:rate($tax, $factor, @TasaOCuota, true())

Checked with CFDI 4.0