A woman who says she is "desperately unhappy" in her 39-year marriage is fighting a legal battle against a court's refusal to grant her divorce.