Dunedin principal ordered to ignore national standards