The mayor of a small town in Western Germany has survived a knife attack possibly linked to his liberal immigration policies.<br />