Scheme identifier shall only be used for invoiced object (document type code with value 130)
cac:AdditionalDocumentReference
((cbc:DocumentTypeCode='130') or ((local-name(/*) = 'CreditNote') and (cbc:DocumentTypeCode='50')) or (not(cbc:ID/@scheme) and not(cbc:DocumentTypeCode)))