Attribute '@format' is required in this context.
The @format attribute is missing from the qdt:DateTimeString element.
The format attribute indicates how the date value in qdt:DateTimeString is to be interpreted.
The qdt:DateTimeString of the referenced receiving document is missing the attribute that identifies the date format. Add @format to resolve the issue.
- Locate
qdt:DateTimeStringin the receiving document date. - Add the
@formatattribute there. - Generate the invoice again and validate it.
<qdt:DateTimeString>20240131</qdt:DateTimeString>
<qdt:DateTimeString format="...">20240131</qdt:DateTimeString>
Technical details
The Schematron condition checks whether the @format attribute is present on the context node.
The rule applies to qdt:DateTimeString within the date of the referenced receiving document.
rule/@context)assert/@test)