SDI-00476
The rule sets below word this rule differently; each wording is shown with its rule set.
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.
Gli elementi 1.2.1.1.1 <IdPaese> e 1.4.1.1.1 <IdPaese> non possono essere entrambi valorizzati con codice diverso da IT
/p:FatturaElettronica
not($sellerCountry != 'IT' and $buyer/IdFiscaleIVA/IdPaese and $buyer/IdFiscaleIVA/IdPaese != 'IT')
Checked with FatturaPA 1.2.3
Gli elementi 1.2.1.1 <IdPaese> e 1.3.1.1.1 <IdPaese> non possono essere entrambi valorizzati con codice diverso da IT
/s:FatturaElettronicaSemplificata
not($sellerCountry != 'IT' and $buyer/IdFiscaleIVA/IdPaese and $buyer/IdFiscaleIVA/IdPaese != 'IT')
Checked with FatturaPA simplified 1.0.2