Court of Appeal rules on divorce