School officials have apologized to a teenager who was ordered to change clothes after he wore a kilt to a school dance.

Jackson High School senior Nathan Warmack received a letter Monday from Superintendent Ron Anderson, who apologized for "the fact that he was humiliated and not permitted to wear his kilt" to the dance.

Anderson also promised to train staff in properly interpreting the dress code.

Warmack, 18, said his actions helped fight discrimination.

"It's just one of the walls that needs to be broken down, but I feel I helped a lot," he said.

Warmack wore a kilt to a dance on Nov. 5 with a dress shirt and tie as a way to honor his Scottish heritage. The principal told Warmack to change into pants. The decision sparked an Internet petition and angered Scottish organizations that insisted the student's outfit was appropriate.