And what should happen if there are different religious views in the school?
To answer my own question. Compulsory is probably not good at all. Worship could be optional even if there are multiple religious beliefs in the school.
Would not mean they all have to worship in the assemby hall at the same time.
What they could do perhaps at the of assembly go to specific places where they worship. Andmaybe pupils should be encouraged to visit other worshipping practices so everyone could learn something new and thus devlop diversity and tolerance.