For purposes of rule 35(12) discovery, even where a party may have made an indirect reference to documents in its affidavit or annexures, the party seeking production must demonstrate the relevance of those documents to the matter, assessed on the basis of issues that might arise and possible grounds of defence. A simple interlocutory order regarding production of documents is not appealable unless it disposes of any issue in the main action or irreparably anticipates or precludes relief that might be given at the hearing. The test for leave to appeal under section 17(1)(a) of the Superior Courts Act requires either a reasonable prospect of success or some other compelling reason, which sets a raised threshold for appellate intervention.