Complex sentence: In Ljubljana he attended primary and secondary education, before enrolling to the Naval Military Academy (VII class) in Dubrovnik, which lasted three years.
Split into simpler sentences: In Ljubljana he attended primary and secondary education. After that he enrolled Naval Military Academy (VII class) in Dubrovnik, which lasted three years.