Message

Tax categories MUST match provided tax categories on document level when such exists.

Context
cac:AllowanceCharge/cac:TaxCategory | cac:Item/cac:ClassifiedTaxCategory
Test
not(//cac:TaxTotal) or (some $cat in $taxCategories satisfies $cat = cbc:ID)