Counterfoil rule note

UBL-DT-06

Quoted from a public specification. This page is not a validator, and it is not tax, legal, or accounting advice.

Country
EU
Syntax
UBL
Severity
fatal
Last verified
2026-10-18

Official statement

Binary object elements shall contain the mime code attribute

Source: https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/UBL-DT-06/

Peppol BIS Billing 3.0, May 2026 release, EN 16931 model bound to UBL

Severity note: fatal, from the Flag column of the Peppol BIS Billing 3.0 UBL rules index retrieved 2026-10-18.

Plain-language reading

A binary object element shall contain the mime code attribute. The statement has no period and says shall. It is 60 characters. The flag is fatal. The context is the same string as UBL-DT-07. It writes ends-with(name(), 'BinaryObject') with a space before the quote. The published test is (@mimeCode). It does not call count and it does not use <=. The attribute name is camel case.

What to change

Add the mimeCode attribute to each binary object element.

Illustration

Illustration of the condition in the official statement. Not an example published by the source.

Fails the stated condition. A binary object element has no mimeCode attribute.

Passes the stated condition. A binary object element has a mimeCode attribute.

Published context and test

Copied from the source. Not reimplemented on this page.

//*[ends-with(name(), 'BinaryObject')]
(@mimeCode)

All rule notes · JSON · Markdown · llms.txt · Invoice page · Privacy