Am 03.02.2020 um 01:22 schrieb Graydon Saunders:
for $value in $xmlReport/csv/record/Payment_Amount/number()
  where ???
  return $value

Can you live with

for $value in $xmlReport/csv/record/Payment_Amount
  where $value castable as xs:double
  return xs:double($value)

?