Attribute '@format' is required in this context.
The @format attribute is missing from udt:DateTimeString. The test requires the attribute to be present.
The format code describes how to read the date value. Without it, the format of the occurrence date is not specified.
The occurrence date of the actual delivery event is missing its date-format code. Add the @format attribute so that the date is provided with its format.
- Locate
udt:DateTimeStringinsideram:OccurrenceDateTime. - Add the required
@formatattribute there. - Generate the invoice again and validate it again.
Technical details
The XPath test @format checks only whether the attribute is present on the current udt:DateTimeString.
The rule applies to udt:DateTimeString of the occurrence date in the actual delivery event of an invoice line.
rule/@context)assert/@test)