Rules / IBR-074
Binary object elements must contain the mime code attribute
Binary object elements (ibt-125) must contain the mime code attribute (ibt-125-1).
Fails
<cbc:EmbeddedDocumentBinaryObject filename="po.pdf">JVBERi0…</cbc:EmbeddedDocumentBinaryObject>
<!-- no mimeCode -->
Fix
Add @mimeCode to every binary object, such as cbc:EmbeddedDocumentBinaryObject, for example application/pdf.
Schematron
- Context
//*[ends-with(name(), 'BinaryObject')]- Test
(@mimeCode)
Official text: Binary object elements (ibt-125) MUST contain the mime code attribute (ibt-125-1).