Attribute '@mimeCode' is required in this context.
The mimeCode attribute is missing from ram:AttachmentBinaryObject.
The mimeCode attribute identifies the media type of the file attachment.
The mimeCode attribute is missing from ram:AttachmentBinaryObject. Add it so the media type of the attachment is included.
- Add the
mimeCodeattribute toram:AttachmentBinaryObject. - Generate the invoice again and validate it once more.
<ram:AttachmentBinaryObject>QQ==</ram:AttachmentBinaryObject>
<ram:AttachmentBinaryObject mimeCode="application/pdf">QQ==</ram:AttachmentBinaryObject>
Technical details
The test checks whether the mimeCode attribute is present on the current ram:AttachmentBinaryObject.
The rule applies to the mimeCode attribute of ram:AttachmentBinaryObject for the embedded document.
rule/@context)assert/@test)