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