A 16-year-old boy has been charged in connection with the death of Bailey Gwynne, the schoolboy who was stabbed at Cults Academy in Aberdeen.
The male is expected to appear at Aberdeen Sheriff Court on 30 October 2015.
Gwynne, described as a "gentle and caring" boy, suffered serious injuries in the attack at the school in west Aberdeen at around 1.30pm on Wednesday.
He died a short time later at the city's Royal Infirmary, sparking a murder investigation by police.
Writing on her public blog to staff, Aberdeen City Council chief executive Angela Scott said: "I know that there were individual acts of heroism at the school yesterday and I fully appreciate that there were sights and experiences for many that you simply do not expect to have to face."
She paid tribute to head teacher Anna Muirhead and her team at the school, saying they are putting measures in place to make sure pupils, parents and staff are given the support they need following the "heart-breaking" incident.
Scott also wrote: "The anguish being suffered by parents, family and friends is unimaginable and I am certain I speak for us all in expressing the deepest sympathy to them."
Gwynne's headteacher Anna Muirhead said: "Pupils and staff are in a state of total shock. The boy involved was a very gentle, caring pupil, with a lot of friends.
"I think it's fair to say the whole school community is totally devastated. At the moment of course our thoughts are all with the boy's close family and his friends and what they must be going through at this tragic time."
A candlelit vigil is scheduled for 8pm on Thursday, and a wall of flowers has already appeared outside the school, with many taking to Twitter to pay their tributes to the teenager.