by using xslt, I am going to split my xml files. The follow code works fine. But it creats problem with filenames.
my sample xml file is here:
content file 1
name='test / test2'>
content file 2
content file 3
 
it created 2 output xml files in out folder as test1.xml, test3.xml.
test2.xml file created on out/test/ folder. It means it preserve spaces.
I would like to have test_test2.xml in out folder. 
How can I achieve this:
my xslt code is here:
 
Advance thanks,
Darma