XV-HR-01

Line …: '…' is not a six-digit KPD code such as 62.20.20; the Fiscalisation Act asks for the KPD code with at least six digits (NN 89/25, art. 42(2)).

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

Context
cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode[@listID = 'CG']
Test
$code != ''

Checked with Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)