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.
ubl-invoice:Invoice[$supplierCountry = 'SK' and $customerCountry = 'SK']not(normalize-space(cbc:InvoiceTypeCode) = '384') or cac:BillingReference