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