The allowed maximum number of decimals for the Invoice line allowance amount (BT-136) is 2.
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = false()]
string-length(substring-after(cbc:Amount,'.'))<=2