Contract identifier shall occur maximum once.
/ubl:Invoice | /cn:CreditNote
(count(cac:ContractDocumentReference/cbc:ID) <= 1)