I have an XML file where the number are comma-separated
>
Assuming the same as Dimitre, that you mean that comma is used as a decimal separator, not as a separator for list of integers.
Pure XSLT 1.0 without EXSLT node-set extension: