In Germany I think it's a bit of both. Beginning in 5th grade, pupils attend different schools. It differs a bit between the states, but generally those in the university track schools (gymnasium) will attend secondary school until 12th or 13th grade then go on to university while the other schools finish at 9th or 10th grade. Those students can then begin working, take an apprenticeship or attend vocational school.
While it may be beneficial to have support for apprenticeships and vocational training, it's controversial that the decision point is made so early. At that age, it may be less about the child's ambitions and abilities and more about the family's resources and social class.