Attribute '@format' is required in this context.
The format attribute is missing from udt:DateTimeString.
The format attribute identifies the format used for the date value. Without it, the format is not specified in this XML context.
The date in udt:DateTimeString is missing the format attribute. Add the attribute to specify the format of the date value.
- Locate the
udt:DateTimeStringfor the invoice date. - Add the
formatattribute to it. - Generate the invoice again and validate it once more.
<udt:DateTimeString>...</udt:DateTimeString>
<udt:DateTimeString format="...">...</udt:DateTimeString>
Technical details
The XPath test checks only whether the format attribute is present on the current udt:DateTimeString.
The rule applies to udt:DateTimeString as the invoice date in the document header.
rule/@context)assert/@test)