Attachment is not a recommended MIMEType.
cbc:EmbeddedDocumentBinaryObject[@mimeCode]
some $code in tokenize('application/pdf image/gif image/tiff image/jpeg image/png text/plain', '\s') satisfies $code = normalize-space(@mimeCode)