VRBL-INV-DK-OIOUBL-2p0-5

Basic Info

Rule The value of the Tax Currency Code must be contained in Tax Currency Code [VRBL-CL-DK-OIOUBL2p0-TaxCurrencyCode].
Context /ubl:Invoice/cbc:TaxCurrencyCode
Pattern vrbl-invoice-dk-oioubl-2p0
Severity fatal

Used Template: CodeList

Parameter Value
probe = .
codeList = $VRBL-CL-DK-OIOUBL2p0-TaxCurrencyCode

Implementation

not(boolean(.))
or
(
	(
		not(
			contains(
				normalize-space(.),
				substring($VRBL-CL-DK-OIOUBL2p0-TaxCurrencyCode, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-DK-OIOUBL2p0-TaxCurrencyCode,
			concat(
				substring($VRBL-CL-DK-OIOUBL2p0-TaxCurrencyCode, 1, 1),
				normalize-space(.),
				substring($VRBL-CL-DK-OIOUBL2p0-TaxCurrencyCode, 1, 1)
			)
		)
	)
)