Message

Tax category for allowance and charge MUST match provided tax categories on document level.

Context
cac:AllowanceCharge
Test
not(cac:TaxCategory/cbc:Percent) or (some $cat in $taxCategories satisfies $cat = $category)