# F-LIB197

Source: https://xmlvalid.com/rules/F-LIB197

> TaxTypeCode must be a value from the '…' codelist when TaxScheme/ID is different from '63' or 'VAT' (Moms)

- Level: error
- Rule sets: OIOUBL 2.1 Invoice rules (Denmark) 1.17.2, OIOUBL 2.1 Credit Note rules (Denmark) 1.17.2, OIOUBL 2.1 Reminder rules (Denmark) 1.17.2
- Test: `not((cbc:ID = '63' or cbc:ID = 'VAT')) and not(contains($TaxType2, concat(',', cbc:TaxTypeCode, ',')))`

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