Only one invoiced object is allowed on document level
ubl-creditnote:CreditNote | ubl-invoice:Invoice
(count(cac:AdditionalDocumentReference[cbc:DocumentTypeCode='130']) <= 1)