Attribute '@format' is required in this context.
The @format attribute is missing from qdt:DateTimeString.
The format attribute indicates the format in which the date value is represented. Without this attribute, the format information required in this context is missing.
The format information is missing from the issue date of the referenced contract document. Add the @format attribute to qdt:DateTimeString so the required information is present.
- Locate
ram:ContractReferencedDocumentand itsqdt:DateTimeStringelement. - Add the
@formatattribute toqdt:DateTimeString. - Generate the invoice again and validate it again.
<qdt:DateTimeString>2024-01-31</qdt:DateTimeString>
<qdt:DateTimeString format="">2024-01-31</qdt:DateTimeString>
Technical details
The XPath test checks only whether the @format attribute is present on the context node.
The rule applies to qdt:DateTimeString for the issue date in the referenced contract document.
rule/@context)assert/@test)