CFDI140226

Cuando en el campo ObjetoImp se registre el valor "06" o "08", los valores "002" (IVA) y/o "003" (IEPS) en el campo "Impuesto" de los nodo hijos "Retencion" y/o "Traslado" del elemento "Retenciones" y/o "Traslados" a nivel Concepto no deben existir.

In English A line with ObjetoImp 06 or 08 (no VAT transferred) must have no transferred or withheld VAT (002) or IEPS (003); it may have an ISR withholding (001).

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:Conceptos/cfdi:Concepto
Test
not(@ObjetoImp = ('06', '08')) or not($imp/*/*[@Impuesto = ('002', '003')])

Checked with CFDI 4.0