# XV-GR-12

Source: https://xmlvalid.com/rules/XV-GR-12

> documentIdNo and countryDocumentId (an identity document, such as a passport) are accepted only on a tax free invoice (specialInvoiceCategory 4).

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:issuer | inv:counterpart`
- Test: `(empty(inv:documentIdNo) and empty(inv:countryDocumentId)) or ancestor::inv:invoice/inv:invoiceHeader/inv:specialInvoiceCategory = '4'`

> countryDocumentId is the country that issued documentIdNo and is given with it.

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:issuer | inv:counterpart`
- Test: `empty(inv:countryDocumentId) or exists(inv:documentIdNo)`

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