Rules
Basic Info
|
Rule
|
The value of the Response Code must be contained in Response Code [VRBL-CL-APR-TR-1p2-ResponseCode] (prefixed by 'VRBL:TR:'). Allowed values: VRBL:TR:IADE, VRBL:TR:KABUL, VRBL:TR:RED, VRBL:TR:S_APR. |
|
Context
|
/ubl:ApplicationResponse/cac:DocumentResponse/cac:Response/cbc:ResponseCode
|
|
Pattern
|
vrbl-applicationresponse-tr-1p2 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-TR-Prefix:$VRBL-CL-APR-TR-1p2-ResponseCode
|
| showValues |
= |
true
|
Implementation
not(boolean(.))
or
(
(
substring(normalize-space(.), 1, string-length($VRBL-TR-Prefix)) = $VRBL-TR-Prefix
and
not(
contains(
substring-after(normalize-space(.), $VRBL-TR-Prefix),
substring($VRBL-CL-APR-TR-1p2-ResponseCode, 1, 1)
)
)
and
contains(
$VRBL-CL-APR-TR-1p2-ResponseCode,
concat(
substring($VRBL-CL-APR-TR-1p2-ResponseCode, 1, 1),
substring-after(normalize-space(.), $VRBL-TR-Prefix),
substring($VRBL-CL-APR-TR-1p2-ResponseCode, 1, 1)
)
)
)
)