No more than one note is allowed on document level, unless both the buyer and seller are German organizations.
ubl-creditnote:CreditNote | ubl-invoice:Invoice
count(cbc:Note) <= 1 or ($supplierCountryIsDE and $customerCountryIsDE)