Message

A credit note MUST refer either to an invoice or a credit note

Context
//cac:BillingReference
Test
((cac:InvoiceDocumentReference) and not(cac:CreditNoteDocumentReference)) or (not(cac:InvoiceDocumentReference) and (cac:CreditNoteDocumentReference))