BR-CL-24
For Mime code in attribute use MIMEMediaType.
Why it fails
- An attached document (
cbc:EmbeddedDocumentBinaryObject) has amimeCodeoutside the allowed list, such asapplication/octet-streamorapplication/msword.
How to fix it
Attach the document as PDF, PNG, JPEG, CSV, XLSX or OpenDocument spreadsheet, with its matching MIME type.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
cbc:EmbeddedDocumentBinaryObject[@mimeCode]
((@mimeCode = 'application/pdf' or @mimeCode = 'image/png' or @mimeCode = 'image/jpeg' or @mimeCode = 'text/csv' or @mimeCode = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or @mimeCode = 'application/vnd.oasis.opendocument.spreadsheet'))
Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)
ram:AttachmentBinaryObject[@mimeCode]
((@mimeCode = 'application/pdf' or @mimeCode = 'image/png' or @mimeCode = 'image/jpeg' or @mimeCode = 'text/csv' or @mimeCode = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' or @mimeCode = 'application/vnd.oasis.opendocument.spreadsheet'))
Checked with EN 16931 Invoice (CII)