Message

The element "Buyer reference" (BT-10) shall be provided.

Context
(/ubl-invoice:Invoice | /ubl-creditnote:CreditNote)[$supplierCountryIsDE and $customerCountryIsDE]
Test
cbc:BuyerReference[boolean(normalize-space(.))]
Usage
/ ubl:Invoice / cbc:BuyerReference
/ ubl:CreditNote / cbc:BuyerReference