XV-CZ-16

The Czech VAT number (DIČ) '…' is not CZ followed by eight to ten digits.

warning: reported, still valid

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
isdoc:Party[isdoc:PostalAddress/isdoc:Country/isdoc:IdentificationCode = 'CZ']
Test
not(starts-with($dic, 'CZ')) or matches($dic, '^CZ[0-9]{8,10}$')

Checked with ISDOC 6.0.2