Message

Element Document reference can only be used for Invoice line object

Context
cac:InvoiceLine | cac:CreditNoteLine
Test
(not(cac:DocumentReference) or (cac:DocumentReference/cbc:DocumentTypeCode='130'))
Usage
/ ubl:Invoice / cac:InvoiceLine / cac:DocumentReference
/ ubl:CreditNote / cac:CreditNoteLine / cac:DocumentReference