Attribute '@format' is required in this context.
The @format attribute is missing from the due-date element udt:DateTimeString.
The @format attribute identifies the format of the date value. It is required in this context so that the content of udt:DateTimeString can be interpreted as a date.
@format is missing from the due date’s udt:DateTimeString. Add this attribute to specify the date format.
- Find
ram:DueDateDateTime/udt:DateTimeStringin the payment terms. - Add the required
@formatattribute to the element. - Generate the invoice again and validate it once more.
<ram:DueDateDateTime> <udt:DateTimeString>20261115</udt:DateTimeString> </ram:DueDateDateTime>
<ram:DueDateDateTime> <udt:DateTimeString format="102">20261115</udt:DateTimeString> </ram:DueDateDateTime>
Technical details
In the context of ram:DueDateDateTime/udt:DateTimeString, the test checks only whether the @format attribute is present.
The rule applies to udt:DateTimeString within the due date in the payment terms.
rule/@context)assert/@test)