VRBL-APR-FR-1p0-10
Basic Info
| Rule | The value of the Response Code must be contained in Response Code [VRBL-CL-APR-FR-1p0-ResponseCode] (prefixed by 'VRBL:FR:'). Allowed values: VRBL:FR:200, VRBL:FR:201, VRBL:FR:202, VRBL:FR:203, VRBL:FR:204, VRBL:FR:205, VRBL:FR:206, VRBL:FR:207, VRBL:FR:208, VRBL:FR:209, VRBL:FR:210, VRBL:FR:211, VRBL:FR:212, VRBL:FR:213, VRBL:FR:214, VRBL:FR:220, VRBL:FR:221, VRBL:FR:224, VRBL:FR:225, VRBL:FR:226, VRBL:FR:227, VRBL:FR:228, VRBL:FR:250, VRBL:FR:251, VRBL:FR:300, VRBL:FR:301, VRBL:FR:400, VRBL:FR:401, VRBL:FR:500, VRBL:FR:501, VRBL:FR:601. |
| Context |
/ubl:ApplicationResponse/cac:DocumentResponse/cac:Response/cbc:ResponseCode
|
| Pattern | vrbl-ar-fr-1p0 |
| Severity | fatal |
Used Template: CodeList
| Parameter | Value | |
|---|---|---|
| probe | = |
.
|
| codeList | = |
$VRBL-FR-Prefix:$VRBL-CL-APR-FR-1p0-ResponseCode
|
| showValues | = |
true
|
Implementation
not(boolean(.))
or
(
(
substring(normalize-space(.), 1, string-length($VRBL-FR-Prefix)) = $VRBL-FR-Prefix
and
not(
contains(
substring-after(normalize-space(.), $VRBL-FR-Prefix),
substring($VRBL-CL-APR-FR-1p0-ResponseCode, 1, 1)
)
)
and
contains(
$VRBL-CL-APR-FR-1p0-ResponseCode,
concat(
substring($VRBL-CL-APR-FR-1p0-ResponseCode, 1, 1),
substring-after(normalize-space(.), $VRBL-FR-Prefix),
substring($VRBL-CL-APR-FR-1p0-ResponseCode, 1, 1)
)
)
)
)