Attribute '@format' is required in this context.
The @format attribute is missing from qdt:DateTimeString. Without this attribute, the date format is not specified in this XML context.
The format attribute identifies how the content of qdt:DateTimeString is to be interpreted. It must be present so that the date value can be identified unambiguously.
The @format attribute is missing from qdt:DateTimeString. Add this attribute to specify the date format.
- Open
ram:FormattedReceivedDateTimefor the advance payment. - Add
@formatto the containedqdt:DateTimeStringelement. - Regenerate the invoice and check it again.
<ram:FormattedReceivedDateTime> <qdt:DateTimeString>20240131</qdt:DateTimeString> </ram:FormattedReceivedDateTime>
<ram:FormattedReceivedDateTime> <qdt:DateTimeString format="">20240131</qdt:DateTimeString> </ram:FormattedReceivedDateTime>
Technical details
The test checks whether the @format attribute exists on the context node qdt:DateTimeString.
The rule applies to qdt:DateTimeString under ram:FormattedReceivedDateTime of an advance payment.
rule/@context)assert/@test)