You need to tokenize the value of the idrefsField attribute. XSLT 1.0 has no native tokenize() function, so you need to call a recursive named template to do this for you:
Alternatively, if your processor supports it, you could use the EXSLT str:tokenize() extension function.