CFDI40193

El valor registrado en el atributo DomicilioFiscalACuentaTerceros, debe pertenecer al nombre asociado al RFC registrado en el campo Rfc del tercero, o debe ser igual al valor del atributo "LugarExpedicion".

In English With the generic third-party RFC EXT990101NI1, DomicilioFiscalACuentaTerceros must be the place of issue (LugarExpedicion).

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:Concepto/cfdi:ACuentaTerceros
Test
not($ext) or @DomicilioFiscalACuentaTerceros = /cfdi:Comprobante/@LugarExpedicion

Checked with CFDI 4.0