fatal CII
[CII-DT-018] - TypeCode should not be present
//ram:*[ends-with(name(), 'ReferencedDocument')]
not(ram:TypeCode) or (self::ram:AdditionalReferencedDocument) and (ram:TypeCode='50' or ram:TypeCode='130' or ram:TypeCode='916')
Source: EN 16931-1 Schematron, UN/CEFACT CII syntax binding (ConnectingEurope/eInvoicing-EN16931, EUPL-1.2).
Invoice XML (UBL 2.1 Invoice/CreditNote or UN/CEFACT CII D16B, max 5 MB):
Validate