Attribute '@format' is required in this context.
The @format attribute is missing from udt:DateTimeString inside ram:IssueDateTime.
The @format attribute identifies the format of the issue date value.
The issue date is missing the @format attribute. Add it to the udt:DateTimeString element.
- Add
@formattoudt:DateTimeStringinsideram:IssueDateTime. - Generate the invoice again and validate it once more.
<ram:IssueDateTime> <udt:DateTimeString>20250115</udt:DateTimeString> </ram:IssueDateTime>
<ram:IssueDateTime> <udt:DateTimeString format="102">20250115</udt:DateTimeString> </ram:IssueDateTime>
Technical details
The XPath test checks only whether @format is present on the current udt:DateTimeString.
The rule applies to the @format attribute on udt:DateTimeString within ram:IssueDateTime in the document header.
rule/@context)assert/@test)