VRBL-INV-IN-1p0-87
Basic Info
|
Rule
|
The Document Number must consist of between 1 and 16 characters, with alphanumerics, "/" and "-" allowed. Additionally, the first character must be alphanumeric and non-zero. |
|
Context
|
/ubl:Invoice/cbc:ID
|
|
Pattern
|
vrbl-invoice-in-1p0 |
|
Severity
|
fatal |
Implementation
string-length(normalize-space(.)) >= 1
and
string-length(normalize-space(.)) <= 16
and
string-length(translate(substring(normalize-space(.), 1, 1), $NonZeroCaseInsensitiveAlphaNumerics, '')) = 0
and
string-length(translate(substring(normalize-space(.), 2, 15), concat($CaseInsensitiveAlphaNumerics, '/-') , '')) = 0