The processing of personal data shall be lawful where that processing - (a) consists of the publication of - (i) a judgment or decision of a court, or (ii) a list or schedule of court proceedings or hearings in court proceedings, or (b) is necessary for the purposes of such publication.