Maximal elements of non-binary choice functions on compact sets