A man who allegedly stabbed a British toddler at a playground in the French Alps will go on trial charged with attempted murder, prosecutors have said.