Element Document reference can only be used for Invoice line object
Context
cac:InvoiceLine | cac:CreditNoteLine
ram:IncludedSupplyChainTradeLineItem
UBL
XPath
1
(not(cac:DocumentReference) or (cac:DocumentReference/cbc:DocumentTypeCode='130'))
CII
XPath
1
(not(ram:SpecifiedLineTradeSettlement/ram:AdditionalReferencedDocument) or (ram:SpecifiedLineTradeSettlement/ram:AdditionalReferencedDocument/ram:TypeCode='130'))