# CII-FREXT-DT-024

Source: https://xmlvalid.com/rules/CII-FREXT-DT-024

> ReferenceTypeCode should not be present

- Level: error
- Rule sets: EXTENDED-CTC-FR rules (CII) 1.4.0.04
- Context: `//ram:*[ends-with(name(), 'ReferencedDocument')]`
- Test: `not(ram:ReferenceTypeCode) or (self::ram:AdditionalReferencedDocument and ram:TypeCode='130') or (self::ram:ContractReferencedDocument)`

Validate a document against these rules: https://xmlvalid.com/validate
