VRBL-APR-TR-1p2-12

Basic Info

Rule The Sender Party Tax Company ID must contain a 10-digit VKN or 11-digit TCKN.
Context /ubl:ApplicationResponse/cac:SenderParty/cac:PartyTaxScheme/cbc:CompanyID
Pattern vrbl-applicationresponse-tr-1p2
Severity fatal

Implementation

(string-length(normalize-space(.)) = 10 and translate(normalize-space(.), $Numerics, '') = '')
or
(string-length(normalize-space(.)) = 11 and translate(normalize-space(.), $Numerics, '') = '')