Attribute '@filename' is required in this context.
The filename attribute is missing from ram:AttachmentBinaryObject. As a result, the filename of the binary attachment is not specified.
The filename attribute identifies the filename of the binary attachment.
The filename is missing for the binary attachment. Add the filename attribute to the relevant XML element.
- Locate the affected
ram:AttachmentBinaryObject. - Add the
filenameattribute with the filename. - Generate the invoice again and validate it.
<ram:AttachmentBinaryObject/>
<ram:AttachmentBinaryObject filename="document.pdf"/>
Technical details
The Schematron condition checks whether the filename 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)