Message

Each invoice line MUST be categorized with the invoice line VAT category if the invoice has a VAT total amount

Context
//cac:InvoiceLine
Test
(cac:Item/cac:ClassifiedTaxCategory/cbc:ID) or not(/ubl:Invoice/cac:TaxTotal/*/*/*/cbc:ID='VAT')
Usage
/ ubl:Invoice / cac:InvoiceLine / cac:Item / cac:ClassifiedTaxCategory / cbc:ID