Message

Element 'cbc:ContractTypeCode' MUST contain value '311'.

Context
/ubl:Catalogue/cac:ReferencedContract/cbc:ContractTypeCode
Test
normalize-space(text()) = '311'
Usage
/ ubl:Catalogue / cac:ReferencedContract / cbc:ContractTypeCode