NFE-518
Rejeição: CFOP de entrada para NF-e de saída [nItem: …] (CFOP …).
In English An outgoing NF-e has an incoming CFOP (starting with 1, 2 or 3).
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 != '1' or not($c1 = ('1', '2', '3'))
Checked with NF-e 4.00, NF-e 4.00 with authorisation protocol