Attribute '@mimeCode' is required in this context.
The mimeCode attribute is missing from ram:AttachmentBinaryObject. Without this attribute, the media type of the binary content is not specified on this element.
mimeCode identifies the media type of the binary content and allows it to be classified.
The media type is missing for a binary attachment. Add the attribute to the relevant XML element.
- Locate the affected
ram:AttachmentBinaryObject. - Add the
mimeCodeattribute to it. - Generate the invoice again and validate it.
<ram:AttachmentBinaryObject/>
<ram:AttachmentBinaryObject mimeCode=""/>
Technical details
The Schematron condition checks whether the mimeCode attribute is present on ram:AttachmentBinaryObject.
The rule applies to ram:AttachmentBinaryObject of a referenced document on the agreement level of an invoice line.
rule/@context)assert/@test)