Question: do you need a passport to travel europe by train?
Answer: ID is not needed to buy tickets or board trains in those countries, unlike yours, but not to have any form of valid photo ID with you can sometimes be a problem in almost every European country except the UK. You should also make a copy of your Schengen visa or work permit.