Message

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

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