Emperor Frederick III and Swiss cantons signed a treaty easing decades of hostility along the Rhine frontier.