BR-FREXT-CL-24
For Mime code in attribute use MIMEMediaType.
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' or @mimeCode = 'application/xml' or @mimeCode = 'text/xml'))
Checked with France EXTENDED-CTC-FR (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' or @mimeCode = 'application/xml' or @mimeCode = 'text/xml'))
Checked with France EXTENDED-CTC-FR (CII)