SDI-00476

The rule sets below word this rule differently; each wording is shown with its rule set.

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.

Message

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

Context
/p:FatturaElettronica
Test
not($sellerCountry != 'IT' and $buyer/IdFiscaleIVA/IdPaese and $buyer/IdFiscaleIVA/IdPaese != 'IT')

Checked with FatturaPA 1.2.3

Message

Gli elementi 1.2.1.1 <IdPaese> e 1.3.1.1.1 <IdPaese> non possono essere entrambi valorizzati con codice diverso da IT

Context
/s:FatturaElettronicaSemplificata
Test
not($sellerCountry != 'IT' and $buyer/IdFiscaleIVA/IdPaese and $buyer/IdFiscaleIVA/IdPaese != 'IT')

Checked with FatturaPA simplified 1.0.2