NFE-519
Rejeição: CFOP de saída para NF-e de entrada [nItem: …] (CFOP …).
In English An incoming NF-e has an outgoing CFOP (starting with 5, 6 or 7).
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.
nfe:infNFe/nfe:det
$tpNF != '0' or not($c1 = ('5', '6', '7'))
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol