The allowed maximum number of decimals for the Document level allowance base amount (BT-93) is 2.
/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | /cn:CreditNote/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
string-length(substring-after(cbc:BaseAmount,'.'))<=2