Message

If both supplier and customer are located in Slovakia, and if "Invoice type code" (BT-3) contains the code 384 (Corrected invoice), "Preceding invoice reference" (BG-3) SHOULD be provided at least once.

Context
ubl-invoice:Invoice[$supplierCountry = 'SK' and $customerCountry = 'SK']
Test
not(normalize-space(cbc:InvoiceTypeCode) = '384') or cac:BillingReference
Usage
/ ubl:Invoice / cbc:InvoiceTypeCode
/ ubl:Invoice / cac:BillingReference