# SDI-00473

Source: https://xmlvalid.com/rules/SDI-00473

> Per il valore indicato nell'elemento 2.1.1.1 <TipoDocumento> il valore presente nell'elemento 1.2.1.1.1 <IdPaese> non è ammesso

- Level: error
- Rule sets: SdI checks (FatturaPA ordinary invoice) Specifiche tecniche 1.9.1
- Context: `/p:FatturaElettronica/FatturaElettronicaBody`
- Test: `not(($type = ('TD17', 'TD18', 'TD19', 'TD28') and $seller/IdPaese = 'IT') or ($type = 'TD29' and $seller/IdPaese != 'IT'))`

In English: The seller's country (1.2.1.1.1) is not allowed for this document type: TD17, TD18, TD19 and TD28 need a seller outside Italy, TD29 an Italian one.

Validate a document against these rules: https://xmlvalid.com/validate
