Tax categories MUST be one of the follwoing codes: AA E H K R S Z AE G
cac:*[ends-with(name(), 'TaxCategory')]/cbc:ID
some $code in tokenize('AA E H K R S Z AE G', '\s') satisfies $code = normalize-space(.)