VRBL-APR-TR-1p2-30

Basic Info

Rule For Response Code equal to 'VRBL:TR:RED', a Description or Document Reference Document Type should be provided.
Context /ubl:ApplicationResponse/cac:DocumentResponse/cac:Response
Pattern vrbl-applicationresponse-tr-1p2
Severity fatal

Implementation

not(cbc:ResponseCode = concat($VRBL-TR-Prefix,'RED'))
or
count(cbc:Description[normalize-space(.) != '']) > 0 
or 
count(../cac:DocumentReference/cbc:DocumentType[normalize-space(.) != '']) > 0