VRBL-INV-PEPPOL-PINT-262
Basic Info
|
Rule
|
The value of the Attachment Mime Code must be contained in MIME Media Types [VRBL-CL-PINT-MIMEMediaType]. Allowed values: application/pdf, application/vnd.oasis.opendocument.spreadsheet, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, image/jpeg, image/png, text/csv. |
|
Context
|
/ubl:Invoice/cac:AdditionalDocumentReference/cac:Attachment/cbc:EmbeddedDocumentBinaryObject
|
|
Pattern
|
vrbl-invoice-peppol-pint |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@mimeCode
|
| codeList |
= |
$VRBL-CL-PINT-MIMEMediaType
|
| showValues |
= |
true
|
Implementation
not(boolean(@mimeCode))
or
(
(
not(
contains(
normalize-space(@mimeCode),
substring($VRBL-CL-PINT-MIMEMediaType, 1, 1)
)
)
and
contains(
$VRBL-CL-PINT-MIMEMediaType,
concat(
substring($VRBL-CL-PINT-MIMEMediaType, 1, 1),
normalize-space(@mimeCode),
substring($VRBL-CL-PINT-MIMEMediaType, 1, 1)
)
)
)
)