BR-CL-18
The rule sets below word this rule differently; each wording is shown with its rule set.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
Invoice tax categories MUST be coded using UNCL5305 code list
cac:ClassifiedTaxCategory/cbc:ID
( ( not(contains(normalize-space(.),' ')) and contains( ' AE L M E S Z G O K B ',concat(' ',normalize-space(.),' ') ) ) )
Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)
Invoice tax categories MUST be coded using UNCL 5305 code list
ram:ApplicableTradeTax/ram:CategoryCode
((not(contains(normalize-space(.), ' ')) and contains(' AE L M E S Z G O K B ', concat(' ', normalize-space(.), ' '))))
Checked with EN 16931 Invoice (CII)