Lawyers for a teacher accused stabbing a school principal after being told his contract would not be renewed have indicated he will plead guilty.