# F-LIB400

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

> When "TaxCategory/ID" is "ZeroRated", "TaxAmount" and "Percent" must be 0."> Values found: - TaxCategoty/ID: … - TaxCategory/Percent: … - TaxAmount: …

- 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: `cbc:ID != 'ZeroRated' or (number(../cbc:TaxAmount) = 0 and (not(cbc:Percent) or number(normalize-space(cbc:Percent)) = 0))`

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