CII dates in format 102

Warning BR-TMP-7 XRechnung

Date values in UNCEFACT/CII shall carry the attribute format="102" and be transmitted in the format YYYYMMDD (YYYYMMDD).

Recommendation: The invoice remains valid but should be corrected so that it can be processed automatically.
What is wrong

The date attribute format is not set to 102, or the text content does not contain exactly eight digits. The date value therefore does not use the required YYYYMMDD format.

What the rule means

Format 102 identifies the compact date representation with year, month, and day in the order YYYYMMDD. This consistent representation makes the date machine-readable.

Please provide the date as `YYYYMMDD` with `format="102"`

A date value is not provided in the required format: the attribute must be format="102" and the value must contain exactly eight digits in YYYYMMDD order. Update the affected date element.

What to do
  1. Set the format attribute on the affected date value to 102.
  2. Provide the date text as exactly eight digits in year, month, day order.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<udt:DateTimeString format="102">2024-11-15</udt:DateTimeString>
✓ Correct
<udt:DateTimeString format="102">20241115</udt:DateTimeString>
Technical details

After whitespace normalization, the test requires @format = '102' and exactly eight digits in the text content of the relevant date string.

Where the rule applies

Date values in udt:DateTimeString, qdt:DateTimeString, or udt:DateString.

Original message from the Schematron
Datumsangaben in UNCEFACT/CII müssen das Attribut format="102" tragen und im Format JJJJMMTT (YYYYMMDD) übermittelt werden.
Context (rule/@context)
udt:DateTimeString | qdt:DateTimeString | udt:DateString
Test expression (assert/@test)
normalize-space(@format) = '102' and matches(normalize-space(text()), '^\d{8}$')