Xiàozhǎng dāngzhòng xùnjiè le nà míng wéiguī de xuéshēng.
The principal publicly reprimanded the student who broke the rules.
Tips
usage
训诫 implies an authority figure (parent, teacher, official) giving a formal or stern warning. It is stronger than 批评 (to criticize) and implies a moral or disciplinary dimension.