Court of Appeal upholds Ontario's talks with Caledonia