I do not understand what the judgments were. If plaintiff lost on his claim, then defendant could not win on any cross-complaint because defendant did not have to pay any damages so has no case. Defendant is the prevailing party. In awarding costs, you look at the claimant against the defendant and what costs were involved in that, then the cross-complainant [defendant] against the cross-defendant as to the costs available as to that part of the suit. If on the cross-complaint, neither party recovers then there would be no prevailing party.
Answered on Mar 15th, 2017 at 7:29 AM