Attribute '@format' is required in this context.
The required @format attribute is missing from qdt:DateTimeString.
The @format attribute identifies the format used for the date value. Without it, the format in use is not indicated.
The qdt:DateTimeString for the referenced contract document’s issue date is missing the @format identifier. Add the attribute to indicate the date format in use.
- Find
qdt:DateTimeStringunderram:FormattedIssueDateTimein the contract document. - Add the
@formatattribute toqdt:DateTimeString. - Generate the invoice again and check it again.
<qdt:DateTimeString>20240101</qdt:DateTimeString>
<qdt:DateTimeString format="102">20240101</qdt:DateTimeString>
Technical details
The test requires @format to be present on qdt:DateTimeString; it does not check the attribute value here.
The rule applies to the @format attribute of qdt:DateTimeString in the issue date of the referenced contract document.
rule/@context)assert/@test)