A high school senior who was transferred to an alternative school as punishment for parodying his principal on the Internet is suing the district, arguing it violated his freedom of speech.

Justin Layshock had used his grandmother’s computer and the Web site MySpace.com to create a phony profile under the principal’s name and photo.